#D97EF7#D97EF7
#D97EF7 is a light, vivid purple. Relative luminance 0.364; OKLCH L 73.6% C 0.190 H 317.3°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).
Color values
| HEX | #D97EF7 |
|---|---|
| RGB | rgb(217, 126, 247) |
| HSL | hsl(285, 88%, 73%) |
| HSV | hsv(285, 49%, 97%) |
| CMYK | cmyk(12.1%, 49%, 0%, 3.1%) |
| CIE-LAB | lab(66.82, 54.22, -46.44) |
| CIE-LCH | lch(66.82, 71.38, 319.42°) |
| OKLab | oklab(73.65% 0.1395 -0.1289) |
| OKLCH | oklch(73.65% 0.19 317.3) |
| XYZ | xyz(52.8622, 36.3906, 92.2171) |
| Luminance | 0.3639 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 4.90
Light Purple
#BF77F6
ΔE00 5.16
Liliac
#C48EFD
ΔE00 5.70
Purply Pink
#F075E6
ΔE00 5.76
Easter Purple
#C071FE
ΔE00 6.07
Orchid
#DA70D6
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D97EF7 #9CF77E
analogous
#9C7EF7 #D97EF7 #F77ED8
triadic
#D97EF7 #F7D97E #7EF7D9
tetradic
#D97EF7 #F79C7E #9CF77E #7ED8F7
square
#D97EF7 #F79C7E #9CF77E #7ED8F7
split-complementary
#D97EF7 #D8F77E #7EF79C
monochromatic
#B50FEC #C844F3 #D97EF7 #EAB8FB #F7E2FD
Accessibility & contrast
On white
2.54
#D97EF7 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.28
#D97EF7 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D97EF7
8.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D97EF7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D97EF7 | 1.00 | 2.54 | 8.28 | 8.28 |
| #FFFFFF | 2.54 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.28 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.28 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#679DFB
Deuteranopia (green-blind)
#82A5F4
Tritanopia (blue-blind)
#D890AF
Achromatopsia (no color)
#A3A3A3
Design tokens & code
CSS
--color: #d97ef7; /* rgb */ color: rgb(217, 126, 247); /* oklch */ color: oklch(73.6% 0.190 317.3);
Tailwind
colors: {
custom: {
50: '#e7a6fa',
500: '#d97ef7',
950: '#000000',
},
}SCSS
$custom: #d97ef7; $custom-light: #e7a6fa; $custom-dark: #000000;
JSON
{
"hex": "#d97ef7",
"rgb": {
"r": 217,
"g": 126,
"b": 247
},
"hsl": {
"h": 285.124,
"s": 88.321,
"l": 73.137
},
"oklch": {
"l": 0.73645,
"c": 0.18991,
"h": 317.3
},
"luminance": 0.36389
}Semantic roles & 50–950 ramp
primary
#D97EF7
secondary
#DEF5D6
accent
#E50139
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85