#D97DF2#D97DF2
#D97DF2 is a light, vivid purple. Relative luminance 0.358; OKLCH L 73.3% C 0.186 H 318.8°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).
Color values
| HEX | #D97DF2 |
|---|---|
| RGB | rgb(217, 125, 242) |
| HSL | hsl(287, 82%, 72%) |
| HSV | hsv(287, 48%, 95%) |
| CMYK | cmyk(10.3%, 48.3%, 0%, 5.1%) |
| CIE-LAB | lab(66.39, 53.74, -44.36) |
| CIE-LCH | lch(66.39, 69.68, 320.46°) |
| OKLab | oklab(73.25% 0.1402 -0.1229) |
| OKLCH | oklch(73.25% 0.186 318.8) |
| XYZ | xyz(51.9738, 35.8316, 88.1656) |
| Luminance | 0.3583 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 4.48
Purply Pink
#F075E6
ΔE00 5.16
Orchid
#DA70D6
ΔE00 5.29
Light Purple
#BF77F6
ΔE00 5.46
Lavender Pink
#DD85D7
ΔE00 6.11
Liliac
#C48EFD
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D97DF2 #96F27D
analogous
#9E7DF2 #D97DF2 #F27DD1
triadic
#D97DF2 #F2D97D #7DF2D9
tetradic
#D97DF2 #F29E7D #96F27D #7DD1F2
square
#D97DF2 #F29E7D #96F27D #7DD1F2
split-complementary
#D97DF2 #D1F27D #7DF29E
monochromatic
#B416DE #C945EC #D97DF2 #E9B5F8 #F7E3FC
Accessibility & contrast
On white
2.57
#D97DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.17
#D97DF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D97DF2
8.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D97DF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D97DF2 | 1.00 | 2.57 | 8.17 | 8.17 |
| #FFFFFF | 2.57 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.17 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.17 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#689BF6
Deuteranopia (green-blind)
#84A5EF
Tritanopia (blue-blind)
#D98DAC
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #d97df2; /* rgb */ color: rgb(217, 125, 242); /* oklch */ color: oklch(73.3% 0.186 318.8);
Tailwind
colors: {
custom: {
50: '#e7a5f7',
500: '#d97df2',
950: '#000000',
},
}SCSS
$custom: #d97df2; $custom-light: #e7a5f7; $custom-dark: #000000;
JSON
{
"hex": "#d97df2",
"rgb": {
"r": 217,
"g": 125,
"b": 242
},
"hsl": {
"h": 287.179,
"s": 81.818,
"l": 71.961
},
"oklch": {
"l": 0.73253,
"c": 0.18641,
"h": 318.8
},
"luminance": 0.3583
}Semantic roles & 50–950 ramp
primary
#D97DF2
secondary
#DDF4D7
accent
#DE0735
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#160F17
muted
#847F85