#D97FF8#D97FF8
#D97FF8 is a light, vivid purple. Relative luminance 0.367; OKLCH L 73.8% C 0.189 H 316.9°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).
Color values
| HEX | #D97FF8 |
|---|---|
| RGB | rgb(217, 127, 248) |
| HSL | hsl(285, 90%, 74%) |
| HSV | hsv(285, 49%, 97%) |
| CMYK | cmyk(12.5%, 48.8%, 0%, 2.7%) |
| CIE-LAB | lab(67.06, 53.91, -46.61) |
| CIE-LCH | lch(67.06, 71.26, 319.16°) |
| OKLab | oklab(73.84% 0.1383 -0.1294) |
| OKLCH | oklch(73.84% 0.189 316.9) |
| XYZ | xyz(53.1455, 36.7095, 93.0748) |
| Luminance | 0.3671 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 4.95
Light Purple
#BF77F6
ΔE00 5.19
Liliac
#C48EFD
ΔE00 5.51
Purply Pink
#F075E6
ΔE00 5.91
Easter Purple
#C071FE
ΔE00 6.12
Orchid
#DA70D6
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D97FF8 #9EF87F
analogous
#9C7FF8 #D97FF8 #F87FDA
triadic
#D97FF8 #F8D97F #7FF8D9
tetradic
#D97FF8 #F89C7F #9EF87F #7FDAF8
square
#D97FF8 #F89C7F #9EF87F #7FDAF8
split-complementary
#D97FF8 #DAF87F #7FF89C
monochromatic
#B50DF0 #C845F5 #D97FF8 #EAB9FB #F6E2FD
Accessibility & contrast
On white
2.52
#D97FF8 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.34
#D97FF8 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D97FF8
8.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D97FF8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D97FF8 | 1.00 | 2.52 | 8.34 | 8.34 |
| #FFFFFF | 2.52 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.34 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.34 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#679DFC
Deuteranopia (green-blind)
#82A6F5
Tritanopia (blue-blind)
#D891B0
Achromatopsia (no color)
#A3A3A3
Design tokens & code
CSS
--color: #d97ff8; /* rgb */ color: rgb(217, 127, 248); /* oklch */ color: oklch(73.8% 0.189 316.9);
Tailwind
colors: {
custom: {
50: '#e7a7fb',
500: '#d97ff8',
950: '#000000',
},
}SCSS
$custom: #d97ff8; $custom-light: #e7a7fb; $custom-dark: #000000;
JSON
{
"hex": "#d97ff8",
"rgb": {
"r": 217,
"g": 127,
"b": 248
},
"hsl": {
"h": 284.628,
"s": 89.63,
"l": 73.529
},
"oklch": {
"l": 0.73839,
"c": 0.18935,
"h": 316.9
},
"luminance": 0.36708
}Semantic roles & 50–950 ramp
primary
#D97FF8
secondary
#DEF5D6
accent
#E6003B
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85