#D797FC#D797FC
#D797FC is a light, vivid violet. Relative luminance 0.436; OKLCH L 77.5% C 0.154 H 312.3°. Best body text is #000000 at 9.72:1 contrast (WCAG AA passes).
Color values
| HEX | #D797FC |
|---|---|
| RGB | rgb(215, 151, 252) |
| HSL | hsl(278, 94%, 79%) |
| HSV | hsv(278, 40%, 99%) |
| CMYK | cmyk(14.7%, 40.1%, 0%, 1.2%) |
| CIE-LAB | lab(71.97, 41.64, -41.11) |
| CIE-LCH | lch(71.97, 58.51, 315.36°) |
| OKLab | oklab(77.52% 0.1036 -0.1137) |
| OKLCH | oklch(77.52% 0.154 312.3) |
| XYZ | xyz(56.6586, 43.6096, 97.5093) |
| Luminance | 0.4361 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Baby Purple
#CA9BF7
ΔE00 2.83
Lilac (survey)
#CEA2FD
ΔE00 3.60
Pastel Purple
#CAA0FF
ΔE00 3.92
Liliac
#C48EFD
ΔE00 4.32
Lavender (survey)
#C79FEF
ΔE00 4.41
Mauve
#E0B0FF
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D797FC #BCFC97
analogous
#A597FC #D797FC #FC97EF
triadic
#D797FC #FCD797 #97FCD7
tetradic
#D797FC #FCA597 #BCFC97 #97EFFC
square
#D797FC #FCA597 #BCFC97 #97EFFC
split-complementary
#D797FC #EFFC97 #97FCA5
monochromatic
#A920F9 #C05CFA #D797FC #EED2FE #F4E1FE
Accessibility & contrast
On white
2.16
#D797FC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.72
#D797FC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D797FC
9.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D797FC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D797FC | 1.00 | 2.16 | 9.72 | 9.72 |
| #FFFFFF | 2.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.72 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.72 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#84ADFF
Deuteranopia (green-blind)
#94B2F9
Tritanopia (blue-blind)
#D4A5BE
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #d797fc; /* rgb */ color: rgb(215, 151, 252); /* oklch */ color: oklch(77.5% 0.154 312.3);
Tailwind
colors: {
custom: {
50: '#e5b6fd',
500: '#d797fc',
950: '#000000',
},
}SCSS
$custom: #d797fc; $custom-light: #e5b6fd; $custom-dark: #000000;
JSON
{
"hex": "#d797fc",
"rgb": {
"r": 215,
"g": 151,
"b": 252
},
"hsl": {
"h": 278.02,
"s": 94.393,
"l": 79.02
},
"oklch": {
"l": 0.77517,
"c": 0.1538,
"h": 312.3
},
"luminance": 0.43609
}Semantic roles & 50–950 ramp
primary
#D797FC
secondary
#E1F6D5
accent
#E60054
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161118
muted
#848086