#D97DF7#D97DF7
#D97DF7 is a light, vivid purple. Relative luminance 0.361; OKLCH L 73.5% C 0.191 H 317.3°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).
Color values
| HEX | #D97DF7 |
|---|---|
| RGB | rgb(217, 125, 247) |
| HSL | hsl(285, 88%, 73%) |
| HSV | hsv(285, 49%, 97%) |
| CMYK | cmyk(12.1%, 49.4%, 0%, 3.1%) |
| CIE-LAB | lab(66.62, 54.72, -46.74) |
| CIE-LCH | lch(66.62, 71.97, 319.50°) |
| OKLab | oklab(73.5% 0.1408 -0.1298) |
| OKLCH | oklch(73.5% 0.191 317.3) |
| XYZ | xyz(52.7350, 36.1361, 92.1747) |
| Luminance | 0.3613 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 4.98
Light Purple
#BF77F6
ΔE00 5.08
Purply Pink
#F075E6
ΔE00 5.74
Liliac
#C48EFD
ΔE00 5.82
Easter Purple
#C071FE
ΔE00 5.95
Orchid
#DA70D6
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D97DF7 #9BF77D
analogous
#9C7DF7 #D97DF7 #F77DD8
triadic
#D97DF7 #F7D97D #7DF7D9
tetradic
#D97DF7 #F79C7D #9BF77D #7DD8F7
square
#D97DF7 #F79C7D #9BF77D #7DD8F7
split-complementary
#D97DF7 #D8F77D #7DF79C
monochromatic
#B50EEB #C843F3 #D97DF7 #EAB7FB #F7E2FD
Accessibility & contrast
On white
2.55
#D97DF7 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.23
#D97DF7 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D97DF7
8.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D97DF7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D97DF7 | 1.00 | 2.55 | 8.23 | 8.23 |
| #FFFFFF | 2.55 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.23 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.23 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#659CFB
Deuteranopia (green-blind)
#81A5F4
Tritanopia (blue-blind)
#D88FAF
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #d97df7; /* rgb */ color: rgb(217, 125, 247); /* oklch */ color: oklch(73.5% 0.191 317.3);
Tailwind
colors: {
custom: {
50: '#e7a5fa',
500: '#d97df7',
950: '#000000',
},
}SCSS
$custom: #d97df7; $custom-light: #e7a5fa; $custom-dark: #000000;
JSON
{
"hex": "#d97df7",
"rgb": {
"r": 217,
"g": 125,
"b": 247
},
"hsl": {
"h": 285.246,
"s": 88.406,
"l": 72.941
},
"oklch": {
"l": 0.73501,
"c": 0.19148,
"h": 317.3
},
"luminance": 0.36134
}Semantic roles & 50–950 ramp
primary
#D97DF7
secondary
#DDF5D6
accent
#E50039
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85