#D97FEF#D97FEF
#D97FEF is a light, vivid purple. Relative luminance 0.362; OKLCH L 73.4% C 0.180 H 319.5°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).
Color values
| HEX | #D97FEF |
|---|---|
| RGB | rgb(217, 127, 239) |
| HSL | hsl(288, 78%, 72%) |
| HSV | hsv(288, 47%, 94%) |
| CMYK | cmyk(9.2%, 46.9%, 0%, 6.3%) |
| CIE-LAB | lab(66.65, 52.14, -42.31) |
| CIE-LCH | lch(66.65, 67.14, 320.94°) |
| OKLab | oklab(73.4% 0.137 -0.117) |
| OKLCH | oklch(73.4% 0.18 319.5) |
| XYZ | xyz(51.7826, 36.1643, 85.8973) |
| Luminance | 0.3616 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 4.06
Purply Pink
#F075E6
ΔE00 4.91
Orchid
#DA70D6
ΔE00 5.05
Lavender Pink
#DD85D7
ΔE00 5.44
Light Purple
#BF77F6
ΔE00 5.92
Liliac
#C48EFD
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D97FEF #95EF7F
analogous
#A17FEF #D97FEF #EF7FCD
triadic
#D97FEF #EFD97F #7FEFD9
tetradic
#D97FEF #EFA17F #95EF7F #7FCDEF
square
#D97FEF #EFA17F #95EF7F #7FCDEF
split-complementary
#D97FEF #CDEF7F #7FEFA1
monochromatic
#B31BD9 #C949E8 #D97FEF #E9B5F6 #F7E4FC
Accessibility & contrast
On white
2.55
#D97FEF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.23
#D97FEF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D97FEF
8.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D97FEF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D97FEF | 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)
#6D9CF3
Deuteranopia (green-blind)
#87A5EC
Tritanopia (blue-blind)
#DA8EAC
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #d97fef; /* rgb */ color: rgb(217, 127, 239); /* oklch */ color: oklch(73.4% 0.180 319.5);
Tailwind
colors: {
custom: {
50: '#e7a7f4',
500: '#d97fef',
950: '#000000',
},
}SCSS
$custom: #d97fef; $custom-light: #e7a7f4; $custom-dark: #000000;
JSON
{
"hex": "#d97fef",
"rgb": {
"r": 217,
"g": 127,
"b": 239
},
"hsl": {
"h": 288.214,
"s": 77.778,
"l": 71.765
},
"oklch": {
"l": 0.73397,
"c": 0.18016,
"h": 319.5
},
"luminance": 0.36162
}Semantic roles & 50–950 ramp
primary
#D97FEF
secondary
#DCF3D7
accent
#DA0B34
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#161017
muted
#847F85