Skip to content

#a18df2

a light, electric blue · cool · closest name: Medium Purple

RGB
161, 141, 242
HSL
252°, 80%, 75%
CMYK
34, 42, 0, 5
Luminance
0.3304

At a glance

Every number on this page in one read: what #a18df2 is made of, how bright it looks, and which way it leans.

Hex
#a18df2
Hue
252°
blue
Saturation
80%
electric
Lightness
75%
light
Brightness
95%
HSV value
Perceived
63%
weighted brightness
Luminance
0.3304
WCAG relative
Temperature
Cool
77/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
7.61:1
Closest name
Medium Purple
ΔE2000 8.7
Where it sits
Hue252° of 360°
Saturation80%
Lightness75%
Temperature
Warm ← → Cool77% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#a18df2
RGBrgb(161, 141, 242)
HSLhsl(252, 80%, 75%)
CMYKcmyk(34%, 42%, 0%, 5%)
LABlab(64.2 29.8 -48.2)
LCHlch(64.2 56.7 301.7)
OKLCHoklch(0.703 0.145 291.3)
Decimal10587634
Display P3color(display-p3 0.631 0.553 0.949)

Copy-ready code

/* CSS */
color: #a18df2;
background-color: #a18df2;
/* Tailwind (arbitrary) */
class="text-[#a18df2] bg-[#a18df2]"
/* SCSS */
$brand: #a18df2;
/* SwiftUI */
Color(red: 0.631, green: 0.553, blue: 0.949)
/* Android */
Color.parseColor("#a18df2")
/* Flutter */
Color(0xFFA18DF2)
/* Python / OpenCV (BGR) */
(242, 141, 161)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #a18df2 · 7.61:1
Use #000000AAA at every size.
Aa
White text · 2.76:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.61:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #a18df2 as text scores 2.76:1 on white and 7.61:1 on black.

Accessibility — WCAG contrast

Aa
#a18df2 on white: 2.76:1
AA ✗ fail · AA-large · AAA
Aa
#a18df2 on black: 7.61:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6D9DF6
deuteranopia · #6F9AF0
tritanopia · #8DA0B4

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #a18df2 is pinned to step 300; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F4F3FC
#EAE6F9
#D0C7F5
#a18df2
#8268EE
#5936E8
#4019DC
#3515B7
#2A1192
#22106A
#150A42
Base = 300Lightest = 50 · #F4F3FCDarkest = 950 · #150A42
:root {
  --brand-50: #F4F3FC;
  --brand-100: #EAE6F9;
  --brand-200: #D0C7F5;
  --brand-300: #a18df2;
  --brand-400: #8268EE;
  --brand-500: #5936E8;
  --brand-600: #4019DC;
  --brand-700: #3515B7;
  --brand-800: #2A1192;
  --brand-900: #22106A;
  --brand-950: #150A42;
  --brand: #a18df2;
  --brand-ink: #000000;
}

Colors that work with #a18df2

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F6F4FA
Tinted page background
Border#C9C0ED
Hairlines and dividers
Muted text#5B4B9B
Captions on the surface
Accent#BCB210
Second voice, not a rival
Dark variant#210D72
Hover, pressed, headers
Light variant#ECE8FC
Selected rows, tints
Dark surface#171424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #a18df2

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#DEF28D
Analogous left#8DABF2
Analogous right#D48DF2
Split-complement 1#F2D48D
Split-complement 2#ABF28D
Triadic 1#F2A18D
Triadic 2#8DF2A1
Tetradic#F28DAB

RGB percentages

Red63.1%
Green55.3%
Blue94.9%

CMYK percentages

Cyan33.5%
Magenta41.7%
Yellow0.0%
Key (black)5.1%

Color previews

#a18df2 text on a black background

contrast 7.61:1

Card sample

#a18df2 text on a white background

contrast 2.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #a18df2;
Background color
Panel with #a18df2 background
background-color: #a18df2;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #a18df2;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(161, 141, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(161, 141, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a18df2;
background: linear-gradient(135deg, #a18df2, #E48DF2);

Monochromatic scale

Palettes built from #a18df2

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#a18df2 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#a18df2, answered

What color is #a18df2?

#a18df2 is a light electric blue, closest to Medium Purple (ΔE2000 8.7). It sits at 252° on the hue wheel with 80% saturation and 75% lightness, which reads as cool.

What is the RGB value of #a18df2?

rgb(161, 141, 242) — 161 red, 141 green and 242 blue out of 255, or 63.1% / 55.3% / 94.9% by channel.

Is #a18df2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3304 and perceived brightness is 63%, so black text on it reaches 7.61:1.

Should I use black or white text on #a18df2?

Black. It scores 7.61:1 against #a18df2, versus 2.76:1 for white — AAA at any size.

What is the complementary color of #a18df2?

#DEF28D sits directly opposite on the wheel. Softer options are the split-complements #F2D48D and #ABF28D, which give the same contrast with far less vibration.

What colors go well with #a18df2?

For interface work: #F6F4FA as the surface, #C9C0ED for borders, #5B4B9B for secondary text, #BCB210 as an accent and #210D72 for hover and pressed states. For a palette, the analogous pair #8DABF2 and #D48DF2 stays calm, while #DEF28D is the loudest partner.

What is #a18df2 in CMYK for printing?

cmyk(34%, 42%, 0%, 5%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #a18df2 warm or cool?

Cool — it scores 77 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C68DF2; nudged cooler, #8C9DF3.

Work with #a18df2 in the Color Lab