#D97EF4#D97EF4
#D97EF4 is a light, vivid purple. Relative luminance 0.362; OKLCH L 73.5% C 0.187 H 318.1°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).
Color values
| HEX | #D97EF4 |
|---|---|
| RGB | rgb(217, 126, 244) |
| HSL | hsl(286, 84%, 73%) |
| HSV | hsv(286, 48%, 96%) |
| CMYK | cmyk(11.1%, 48.4%, 0%, 4.3%) |
| CIE-LAB | lab(66.68, 53.62, -45.01) |
| CIE-LCH | lch(66.68, 70.01, 319.99°) |
| OKLab | oklab(73.5% 0.1391 -0.1248) |
| OKLCH | oklch(73.5% 0.187 318.1) |
| XYZ | xyz(52.4030, 36.2069, 89.7986) |
| Luminance | 0.3620 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 4.59
Light Purple
#BF77F6
ΔE00 5.38
Purply Pink
#F075E6
ΔE00 5.41
Orchid
#DA70D6
ΔE00 5.66
Liliac
#C48EFD
ΔE00 5.93
Lavender Pink
#DD85D7
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D97EF4 #99F47E
analogous
#9E7EF4 #D97EF4 #F47ED4
triadic
#D97EF4 #F4D97E #7EF4D9
tetradic
#D97EF4 #F49E7E #99F47E #7ED4F4
square
#D97EF4 #F49E7E #99F47E #7ED4F4
split-complementary
#D97EF4 #D4F47E #7EF49E
monochromatic
#B413E4 #C846EF #D97EF4 #EAB6F9 #F7E3FD
Accessibility & contrast
On white
2.55
#D97EF4 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.24
#D97EF4 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D97EF4
8.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D97EF4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D97EF4 | 1.00 | 2.55 | 8.24 | 8.24 |
| #FFFFFF | 2.55 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.24 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.24 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#699CF8
Deuteranopia (green-blind)
#83A5F1
Tritanopia (blue-blind)
#D98FAE
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #d97ef4; /* rgb */ color: rgb(217, 126, 244); /* oklch */ color: oklch(73.5% 0.187 318.1);
Tailwind
colors: {
custom: {
50: '#e7a6f8',
500: '#d97ef4',
950: '#000000',
},
}SCSS
$custom: #d97ef4; $custom-light: #e7a6f8; $custom-dark: #000000;
JSON
{
"hex": "#d97ef4",
"rgb": {
"r": 217,
"g": 126,
"b": 244
},
"hsl": {
"h": 286.271,
"s": 84.286,
"l": 72.549
},
"oklch": {
"l": 0.73496,
"c": 0.18685,
"h": 318.1
},
"luminance": 0.36205
}Semantic roles & 50–950 ramp
primary
#D97EF4
secondary
#DDF5D6
accent
#E10537
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85