#D997FC#D997FC
#D997FC is a light, vivid violet. Relative luminance 0.439; OKLCH L 77.7% C 0.155 H 313.2°. Best body text is #000000 at 9.78:1 contrast (WCAG AA passes).
Color values
| HEX | #D997FC |
|---|---|
| RGB | rgb(217, 151, 252) |
| HSL | hsl(279, 94%, 79%) |
| HSV | hsv(279, 40%, 99%) |
| CMYK | cmyk(13.9%, 40.1%, 0%, 1.2%) |
| CIE-LAB | lab(72.17, 42.21, -40.78) |
| CIE-LCH | lch(72.17, 58.69, 315.99°) |
| OKLab | oklab(77.72% 0.1059 -0.1127) |
| OKLCH | oklch(77.72% 0.155 313.2) |
| XYZ | xyz(57.2497, 43.9144, 97.5371) |
| Luminance | 0.4391 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Baby Purple
#CA9BF7
ΔE00 3.17
Lilac (survey)
#CEA2FD
ΔE00 3.85
Pastel Purple
#CAA0FF
ΔE00 4.24
Lavender (survey)
#C79FEF
ΔE00 4.65
Liliac
#C48EFD
ΔE00 4.66
Mauve
#E0B0FF
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D997FC #BAFC97
analogous
#A797FC #D997FC #FC97ED
triadic
#D997FC #FCD997 #97FCD9
tetradic
#D997FC #FCA797 #BAFC97 #97EDFC
square
#D997FC #FCA797 #BAFC97 #97EDFC
split-complementary
#D997FC #EDFC97 #97FCA7
monochromatic
#AE20F9 #C35CFA #D997FC #EFD2FE #F4E1FE
Accessibility & contrast
On white
2.15
#D997FC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.78
#D997FC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D997FC
9.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D997FC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D997FC | 1.00 | 2.15 | 9.78 | 9.78 |
| #FFFFFF | 2.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#84ADFF
Deuteranopia (green-blind)
#95B3F9
Tritanopia (blue-blind)
#D6A5BE
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #d997fc; /* rgb */ color: rgb(217, 151, 252); /* oklch */ color: oklch(77.7% 0.155 313.2);
Tailwind
colors: {
custom: {
50: '#e6b6fd',
500: '#d997fc',
950: '#000000',
},
}SCSS
$custom: #d997fc; $custom-light: #e6b6fd; $custom-dark: #000000;
JSON
{
"hex": "#d997fc",
"rgb": {
"r": 217,
"g": 151,
"b": 252
},
"hsl": {
"h": 279.208,
"s": 94.393,
"l": 79.02
},
"oklch": {
"l": 0.77717,
"c": 0.15463,
"h": 313.2
},
"luminance": 0.43913
}Semantic roles & 50–950 ramp
primary
#D997FC
secondary
#E0F6D5
accent
#E60050
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161118
muted
#848086