#D97DF8#D97DF8
#D97DF8 is a light, vivid purple. Relative luminance 0.362; OKLCH L 73.6% C 0.193 H 317.1°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).
Color values
| HEX | #D97DF8 |
|---|---|
| RGB | rgb(217, 125, 248) |
| HSL | hsl(285, 90%, 73%) |
| HSV | hsv(285, 50%, 97%) |
| CMYK | cmyk(12.5%, 49.6%, 0%, 2.7%) |
| CIE-LAB | lab(66.67, 54.92, -47.22) |
| CIE-LCH | lch(66.67, 72.42, 319.31°) |
| OKLab | oklab(73.55% 0.1409 -0.1311) |
| OKLCH | oklch(73.55% 0.193 317.1) |
| XYZ | xyz(52.8897, 36.1980, 92.9896) |
| Luminance | 0.3620 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Light Purple
#BF77F6
ΔE00 5.01
Violet (CSS)
#EE82EE
ΔE00 5.08
Liliac
#C48EFD
ΔE00 5.76
Purply Pink
#F075E6
ΔE00 5.86
Easter Purple
#C071FE
ΔE00 5.87
Orchid
#DA70D6
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D97DF8 #9CF87D
analogous
#9B7DF8 #D97DF8 #F87DD9
triadic
#D97DF8 #F8D97D #7DF8D9
tetradic
#D97DF8 #F89B7D #9CF87D #7DD9F8
square
#D97DF8 #F89B7D #9CF87D #7DD9F8
split-complementary
#D97DF8 #D9F87D #7DF89B
monochromatic
#B50DEE #C843F5 #D97DF8 #EAB7FB #F7E2FD
Accessibility & contrast
On white
2.55
#D97DF8 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.24
#D97DF8 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D97DF8
8.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D97DF8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D97DF8 | 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)
#659CFC
Deuteranopia (green-blind)
#80A5F5
Tritanopia (blue-blind)
#D88FAF
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #d97df8; /* rgb */ color: rgb(217, 125, 248); /* oklch */ color: oklch(73.6% 0.193 317.1);
Tailwind
colors: {
custom: {
50: '#e7a5fb',
500: '#d97df8',
950: '#000000',
},
}SCSS
$custom: #d97df8; $custom-light: #e7a5fb; $custom-dark: #000000;
JSON
{
"hex": "#d97df8",
"rgb": {
"r": 217,
"g": 125,
"b": 248
},
"hsl": {
"h": 284.878,
"s": 89.781,
"l": 73.137
},
"oklch": {
"l": 0.73552,
"c": 0.19251,
"h": 317.1
},
"luminance": 0.36196
}Semantic roles & 50–950 ramp
primary
#D97DF8
secondary
#DEF6D5
accent
#E6003A
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85