#D97EF5#D97EF5
#D97EF5 is a light, vivid purple. Relative luminance 0.363; OKLCH L 73.5% C 0.188 H 317.8°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).
Color values
| HEX | #D97EF5 |
|---|---|
| RGB | rgb(217, 126, 245) |
| HSL | hsl(286, 86%, 73%) |
| HSV | hsv(286, 49%, 96%) |
| CMYK | cmyk(11.4%, 48.6%, 0%, 3.9%) |
| CIE-LAB | lab(66.72, 53.82, -45.49) |
| CIE-LCH | lch(66.72, 70.47, 319.80°) |
| OKLab | oklab(73.55% 0.1392 -0.1261) |
| OKLCH | oklch(73.55% 0.188 317.8) |
| XYZ | xyz(52.5553, 36.2678, 90.6004) |
| Luminance | 0.3627 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 4.69
Light Purple
#BF77F6
ΔE00 5.30
Purply Pink
#F075E6
ΔE00 5.53
Orchid
#DA70D6
ΔE00 5.80
Liliac
#C48EFD
ΔE00 5.85
Easter Purple
#C071FE
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D97EF5 #9AF57E
analogous
#9D7EF5 #D97EF5 #F57ED6
triadic
#D97EF5 #F5D97E #7EF5D9
tetradic
#D97EF5 #F59D7E #9AF57E #7ED6F5
square
#D97EF5 #F59D7E #9AF57E #7ED6F5
split-complementary
#D97EF5 #D6F57E #7EF59D
monochromatic
#B512E7 #C845F1 #D97EF5 #EAB7F9 #F7E3FD
Accessibility & contrast
On white
2.54
#D97EF5 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.25
#D97EF5 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D97EF5
8.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D97EF5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D97EF5 | 1.00 | 2.54 | 8.25 | 8.25 |
| #FFFFFF | 2.54 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.25 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.25 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#689CF9
Deuteranopia (green-blind)
#83A5F2
Tritanopia (blue-blind)
#D98FAE
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #d97ef5; /* rgb */ color: rgb(217, 126, 245); /* oklch */ color: oklch(73.5% 0.188 317.8);
Tailwind
colors: {
custom: {
50: '#e7a6f9',
500: '#d97ef5',
950: '#000000',
},
}SCSS
$custom: #d97ef5; $custom-light: #e7a6f9; $custom-dark: #000000;
JSON
{
"hex": "#d97ef5",
"rgb": {
"r": 217,
"g": 126,
"b": 245
},
"hsl": {
"h": 285.882,
"s": 85.612,
"l": 72.745
},
"oklch": {
"l": 0.73545,
"c": 0.18787,
"h": 317.8
},
"luminance": 0.36266
}Semantic roles & 50–950 ramp
primary
#D97EF5
secondary
#DDF5D6
accent
#E20338
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85