#D97DF5#D97DF5
#D97DF5 is a light, vivid purple. Relative luminance 0.360; OKLCH L 73.4% C 0.189 H 317.9°. Best body text is #000000 at 8.20:1 contrast (WCAG AA passes).
Color values
| HEX | #D97DF5 |
|---|---|
| RGB | rgb(217, 125, 245) |
| HSL | hsl(286, 86%, 73%) |
| HSV | hsv(286, 49%, 96%) |
| CMYK | cmyk(11.4%, 49%, 0%, 3.9%) |
| CIE-LAB | lab(66.53, 54.32, -45.79) |
| CIE-LCH | lch(66.53, 71.05, 319.87°) |
| OKLab | oklab(73.4% 0.1406 -0.127) |
| OKLCH | oklch(73.4% 0.189 317.9) |
| XYZ | xyz(52.4280, 36.0133, 90.5580) |
| Luminance | 0.3601 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 4.77
Light Purple
#BF77F6
ΔE00 5.21
Purply Pink
#F075E6
ΔE00 5.51
Orchid
#DA70D6
ΔE00 5.72
Liliac
#C48EFD
ΔE00 5.97
Easter Purple
#C071FE
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D97DF5 #99F57D
analogous
#9D7DF5 #D97DF5 #F57DD5
triadic
#D97DF5 #F5D97D #7DF5D9
tetradic
#D97DF5 #F59D7D #99F57D #7DD5F5
square
#D97DF5 #F59D7D #99F57D #7DD5F5
split-complementary
#D97DF5 #D5F57D #7DF59D
monochromatic
#B412E6 #C844F1 #D97DF5 #EAB6F9 #F7E3FD
Accessibility & contrast
On white
2.56
#D97DF5 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.20
#D97DF5 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D97DF5
8.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D97DF5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D97DF5 | 1.00 | 2.56 | 8.20 | 8.20 |
| #FFFFFF | 2.56 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.20 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.20 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#679CF9
Deuteranopia (green-blind)
#82A5F2
Tritanopia (blue-blind)
#D98EAE
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #d97df5; /* rgb */ color: rgb(217, 125, 245); /* oklch */ color: oklch(73.4% 0.189 317.9);
Tailwind
colors: {
custom: {
50: '#e7a5f9',
500: '#d97df5',
950: '#000000',
},
}SCSS
$custom: #d97df5; $custom-light: #e7a5f9; $custom-dark: #000000;
JSON
{
"hex": "#d97df5",
"rgb": {
"r": 217,
"g": 125,
"b": 245
},
"hsl": {
"h": 286,
"s": 85.714,
"l": 72.549
},
"oklch": {
"l": 0.73401,
"c": 0.18945,
"h": 317.9
},
"luminance": 0.36012
}Semantic roles & 50–950 ramp
primary
#D97DF5
secondary
#DDF5D6
accent
#E20337
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85