#D97FE2#D97FE2
#D97FE2 is a light, vivid purple. Relative luminance 0.354; OKLCH L 72.8% C 0.167 H 323.8°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).
Color values
| HEX | #D97FE2 |
|---|---|
| RGB | rgb(217, 127, 226) |
| HSL | hsl(295, 63%, 69%) |
| HSV | hsv(295, 44%, 89%) |
| CMYK | cmyk(4%, 43.8%, 0%, 11.4%) |
| CIE-LAB | lab(66.08, 49.66, -36.01) |
| CIE-LCH | lch(66.08, 61.34, 324.05°) |
| OKLab | oklab(72.79% 0.1349 -0.0989) |
| OKLCH | oklch(72.79% 0.167 323.8) |
| XYZ | xyz(49.9308, 35.4236, 76.1441) |
| Luminance | 0.3542 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Lavender Pink
#DD85D7
ΔE00 3.29
Violet (CSS)
#EE82EE
ΔE00 3.57
Orchid
#DA70D6
ΔE00 3.57
Purply Pink
#F075E6
ΔE00 4.00
Orchid (survey)
#C875C4
ΔE00 5.53
Candy Pink
#FF63E9
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D97FE2 #88E27F
analogous
#A87FE2 #D97FE2 #E27FBA
triadic
#D97FE2 #E2D97F #7FE2D9
tetradic
#D97FE2 #E2A87F #88E27F #7FBAE2
square
#D97FE2 #E2A87F #88E27F #7FBAE2
split-complementary
#D97FE2 #BAE27F #7FE2A8
monochromatic
#AF2BBC #CA4DD7 #D97FE2 #E8B1ED #F7E3F9
Accessibility & contrast
On white
2.60
#D97FE2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.08
#D97FE2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D97FE2
8.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D97FE2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D97FE2 | 1.00 | 2.60 | 8.08 | 8.08 |
| #FFFFFF | 2.60 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.08 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.08 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#749AE5
Deuteranopia (green-blind)
#8CA4DF
Tritanopia (blue-blind)
#DC8AA6
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #d97fe2; /* rgb */ color: rgb(217, 127, 226); /* oklch */ color: oklch(72.8% 0.167 323.8);
Tailwind
colors: {
custom: {
50: '#e6a6eb',
500: '#d97fe2',
950: '#000000',
},
}SCSS
$custom: #d97fe2; $custom-light: #e6a6eb; $custom-dark: #000000;
JSON
{
"hex": "#d97fe2",
"rgb": {
"r": 217,
"g": 127,
"b": 226
},
"hsl": {
"h": 294.545,
"s": 63.057,
"l": 69.216
},
"oklch": {
"l": 0.72788,
"c": 0.16725,
"h": 323.8
},
"luminance": 0.35421
}Semantic roles & 50–950 ramp
primary
#D97FE2
secondary
#D3EDD0
accent
#CB1B2B
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#161016
muted
#847F84