#D18EF2#D18EF2
#D18EF2 is a light, vivid purple. Relative luminance 0.393; OKLCH L 75.0% C 0.155 H 313.9°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).
Color values
| HEX | #D18EF2 |
|---|---|
| RGB | rgb(209, 142, 242) |
| HSL | hsl(280, 79%, 75%) |
| HSV | hsv(280, 41%, 95%) |
| CMYK | cmyk(13.6%, 41.3%, 0%, 5.1%) |
| CIE-LAB | lab(68.98, 42.63, -40.37) |
| CIE-LCH | lch(68.98, 58.72, 316.56°) |
| OKLab | oklab(74.99% 0.1074 -0.1116) |
| OKLCH | oklch(74.99% 0.155 313.9) |
| XYZ | xyz(51.9919, 39.3133, 88.8365) |
| Luminance | 0.3931 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Liliac
#C48EFD
ΔE00 3.84
Baby Purple
#CA9BF7
ΔE00 3.85
Lavender (survey)
#C79FEF
ΔE00 5.25
Lilac (survey)
#CEA2FD
ΔE00 5.31
Pastel Purple
#CAA0FF
ΔE00 5.40
Violet (CSS)
#EE82EE
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D18EF2 #AFF28E
analogous
#9F8EF2 #D18EF2 #F28EE1
triadic
#D18EF2 #F2D18E #8EF2D1
tetradic
#D18EF2 #F29F8E #AFF28E #8EE1F2
square
#D18EF2 #F29F8E #AFF28E #8EE1F2
split-complementary
#D18EF2 #E1F28E #8EF29F
monochromatic
#A420E5 #BB57EC #D18EF2 #E7C5F8 #F4E4FC
Accessibility & contrast
On white
2.37
#D18EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.86
#D18EF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D18EF2
8.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D18EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D18EF2 | 1.00 | 2.37 | 8.86 | 8.86 |
| #FFFFFF | 2.37 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7CA5F6
Deuteranopia (green-blind)
#8DAAEF
Tritanopia (blue-blind)
#CF9CB5
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #d18ef2; /* rgb */ color: rgb(209, 142, 242); /* oklch */ color: oklch(75.0% 0.155 313.9);
Tailwind
colors: {
custom: {
50: '#e0b0f6',
500: '#d18ef2',
950: '#000000',
},
}SCSS
$custom: #d18ef2; $custom-light: #e0b0f6; $custom-dark: #000000;
JSON
{
"hex": "#d18ef2",
"rgb": {
"r": 209,
"g": 142,
"b": 242
},
"hsl": {
"h": 280.2,
"s": 79.365,
"l": 75.294
},
"oklch": {
"l": 0.74987,
"c": 0.15492,
"h": 313.9
},
"luminance": 0.39312
}Semantic roles & 50–950 ramp
primary
#D18EF2
secondary
#E1F4D7
accent
#DC0A4F
background
#FDFAFF
surface
#FBF5FE
border
#D4CFD6
text
#151117
muted
#838085