#D97EF8#D97EF8
#D97EF8 is a light, vivid purple. Relative luminance 0.365; OKLCH L 73.7% C 0.191 H 317.0°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).
Color values
| HEX | #D97EF8 |
|---|---|
| RGB | rgb(217, 126, 248) |
| HSL | hsl(285, 90%, 73%) |
| HSV | hsv(285, 49%, 97%) |
| CMYK | cmyk(12.5%, 49.2%, 0%, 2.7%) |
| CIE-LAB | lab(66.86, 54.41, -46.91) |
| CIE-LCH | lch(66.86, 71.84, 319.23°) |
| OKLab | oklab(73.69% 0.1396 -0.1303) |
| OKLCH | oklch(73.69% 0.191 317) |
| XYZ | xyz(53.0170, 36.4524, 93.0320) |
| Luminance | 0.3645 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 5.01
Light Purple
#BF77F6
ΔE00 5.10
Liliac
#C48EFD
ΔE00 5.63
Purply Pink
#F075E6
ΔE00 5.88
Easter Purple
#C071FE
ΔE00 5.99
Orchid
#DA70D6
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D97EF8 #9DF87E
analogous
#9C7EF8 #D97EF8 #F87EDA
triadic
#D97EF8 #F8D97E #7EF8D9
tetradic
#D97EF8 #F89C7E #9DF87E #7EDAF8
square
#D97EF8 #F89C7E #9DF87E #7EDAF8
split-complementary
#D97EF8 #DAF87E #7EF89C
monochromatic
#B50DEF #C844F5 #D97EF8 #EAB8FB #F6E2FD
Accessibility & contrast
On white
2.53
#D97EF8 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.29
#D97EF8 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D97EF8
8.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D97EF8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D97EF8 | 1.00 | 2.53 | 8.29 | 8.29 |
| #FFFFFF | 2.53 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.29 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.29 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#669DFC
Deuteranopia (green-blind)
#81A6F5
Tritanopia (blue-blind)
#D890B0
Achromatopsia (no color)
#A3A3A3
Design tokens & code
CSS
--color: #d97ef8; /* rgb */ color: rgb(217, 126, 248); /* oklch */ color: oklch(73.7% 0.191 317.0);
Tailwind
colors: {
custom: {
50: '#e7a6fb',
500: '#d97ef8',
950: '#000000',
},
}SCSS
$custom: #d97ef8; $custom-light: #e7a6fb; $custom-dark: #000000;
JSON
{
"hex": "#d97ef8",
"rgb": {
"r": 217,
"g": 126,
"b": 248
},
"hsl": {
"h": 284.754,
"s": 89.706,
"l": 73.333
},
"oklch": {
"l": 0.73695,
"c": 0.19093,
"h": 317
},
"luminance": 0.36451
}Semantic roles & 50–950 ramp
primary
#D97EF8
secondary
#DEF6D5
accent
#E6003A
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85