#D874EF#D874EF
#D874EF is a light, vivid purple. Relative luminance 0.333; OKLCH L 71.7% C 0.197 H 319.9°. Best body text is #000000 at 7.66:1 contrast (WCAG AA passes).
Color values
| HEX | #D874EF |
|---|---|
| RGB | rgb(216, 116, 239) |
| HSL | hsl(289, 79%, 70%) |
| HSV | hsv(289, 51%, 94%) |
| CMYK | cmyk(9.6%, 51.5%, 0%, 6.3%) |
| CIE-LAB | lab(64.42, 57.36, -45.81) |
| CIE-LCH | lch(64.42, 73.41, 321.39°) |
| OKLab | oklab(71.73% 0.1507 -0.127) |
| OKLCH | oklch(71.73% 0.197 319.9) |
| XYZ | xyz(50.1423, 33.3237, 85.4355) |
| Luminance | 0.3332 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Orchid
#DA70D6
ΔE00 4.47
Light Purple
#BF77F6
ΔE00 5.11
Purply Pink
#F075E6
ΔE00 5.18
Violet (CSS)
#EE82EE
ΔE00 5.44
Light Magenta
#FA5FF7
ΔE00 5.44
Violet Pink
#FB5FFC
ΔE00 5.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D874EF #8BEF74
analogous
#9A74EF #D874EF #EF74C9
triadic
#D874EF #EFD874 #74EFD8
tetradic
#D874EF #EF9A74 #8BEF74 #74C9EF
square
#D874EF #EF9A74 #8BEF74 #74C9EF
split-complementary
#D874EF #C9EF74 #74EF9A
monochromatic
#AE18D1 #C93DE9 #D874EF #E7ABF5 #F7E2FC
Accessibility & contrast
On white
2.74
#D874EF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.66
#D874EF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D874EF
7.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D874EF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D874EF | 1.00 | 2.74 | 7.66 | 7.66 |
| #FFFFFF | 2.74 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.66 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.66 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5E95F3
Deuteranopia (green-blind)
#7DA0EC
Tritanopia (blue-blind)
#D985A7
Achromatopsia (no color)
#9C9C9C
Design tokens & code
CSS
--color: #d874ef; /* rgb */ color: rgb(216, 116, 239); /* oklch */ color: oklch(71.7% 0.197 319.9);
Tailwind
colors: {
custom: {
50: '#e6a0f5',
500: '#d874ef',
950: '#000000',
},
}SCSS
$custom: #d874ef; $custom-light: #e6a0f5; $custom-dark: #000000;
JSON
{
"hex": "#d874ef",
"rgb": {
"r": 216,
"g": 116,
"b": 239
},
"hsl": {
"h": 288.78,
"s": 79.355,
"l": 69.608
},
"oklch": {
"l": 0.71725,
"c": 0.1971,
"h": 319.9
},
"luminance": 0.33322
}Semantic roles & 50–950 ramp
primary
#D874EF
secondary
#D4F1CE
accent
#DC0A31
background
#FEFAFE
surface
#FDF3FD
border
#D5CDD5
text
#160F17
muted
#847F85