#D997FD#D997FD
#D997FD is a light, vivid violet. Relative luminance 0.440; OKLCH L 77.8% C 0.156 H 312.9°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).
Color values
| HEX | #D997FD |
|---|---|
| RGB | rgb(217, 151, 253) |
| HSL | hsl(279, 96%, 79%) |
| HSV | hsv(279, 40%, 99%) |
| CMYK | cmyk(14.2%, 40.3%, 0%, 0.8%) |
| CIE-LAB | lab(72.21, 42.42, -41.25) |
| CIE-LCH | lch(72.21, 59.17, 315.80°) |
| OKLab | oklab(77.76% 0.1061 -0.1141) |
| OKLCH | oklch(77.76% 0.156 312.9) |
| XYZ | xyz(57.4085, 43.9779, 98.3738) |
| Luminance | 0.4398 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Baby Purple
#CA9BF7
ΔE00 3.16
Lilac (survey)
#CEA2FD
ΔE00 3.83
Pastel Purple
#CAA0FF
ΔE00 4.18
Liliac
#C48EFD
ΔE00 4.57
Lavender (survey)
#C79FEF
ΔE00 4.70
Mauve
#E0B0FF
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D997FD #BBFD97
analogous
#A697FD #D997FD #FD97EE
triadic
#D997FD #FDD997 #97FDD9
tetradic
#D997FD #FDA697 #BBFD97 #97EEFD
square
#D997FD #FDA697 #BBFD97 #97EEFD
split-complementary
#D997FD #EEFD97 #97FDA6
monochromatic
#AD1FFB #C35BFC #D997FD #EFD3FE #F4E1FE
Accessibility & contrast
On white
2.14
#D997FD on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.80
#D997FD on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D997FD
9.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D997FD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D997FD | 1.00 | 2.14 | 9.80 | 9.80 |
| #FFFFFF | 2.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#84ADFF
Deuteranopia (green-blind)
#94B3FA
Tritanopia (blue-blind)
#D6A5BE
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #d997fd; /* rgb */ color: rgb(217, 151, 253); /* oklch */ color: oklch(77.8% 0.156 312.9);
Tailwind
colors: {
custom: {
50: '#e6b7fe',
500: '#d997fd',
950: '#000000',
},
}SCSS
$custom: #d997fd; $custom-light: #e6b7fe; $custom-dark: #000000;
JSON
{
"hex": "#d997fd",
"rgb": {
"r": 217,
"g": 151,
"b": 253
},
"hsl": {
"h": 278.824,
"s": 96.226,
"l": 79.216
},
"oklch": {
"l": 0.77763,
"c": 0.15576,
"h": 312.9
},
"luminance": 0.43977
}Semantic roles & 50–950 ramp
primary
#D997FD
secondary
#E0F7D4
accent
#E60051
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161118
muted
#848086