#D797FD#D797FD
#D797FD is a light, vivid violet. Relative luminance 0.437; OKLCH L 77.6% C 0.155 H 312.0°. Best body text is #000000 at 9.73:1 contrast (WCAG AA passes).
Color values
| HEX | #D797FD |
|---|---|
| RGB | rgb(215, 151, 253) |
| HSL | hsl(278, 96%, 79%) |
| HSV | hsv(278, 40%, 99%) |
| CMYK | cmyk(15%, 40.3%, 0%, 0.8%) |
| CIE-LAB | lab(72.01, 41.84, -41.59) |
| CIE-LCH | lch(72.01, 59.00, 315.18°) |
| OKLab | oklab(77.56% 0.1038 -0.1151) |
| OKLCH | oklch(77.56% 0.155 312) |
| XYZ | xyz(56.8175, 43.6732, 98.3461) |
| Luminance | 0.4367 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Baby Purple
#CA9BF7
ΔE00 2.83
Lilac (survey)
#CEA2FD
ΔE00 3.58
Pastel Purple
#CAA0FF
ΔE00 3.86
Liliac
#C48EFD
ΔE00 4.23
Lavender (survey)
#C79FEF
ΔE00 4.47
Mauve
#E0B0FF
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D797FD #BDFD97
analogous
#A497FD #D797FD #FD97F0
triadic
#D797FD #FDD797 #97FDD7
tetradic
#D797FD #FDA497 #BDFD97 #97F0FD
square
#D797FD #FDA497 #BDFD97 #97F0FD
split-complementary
#D797FD #F0FD97 #97FDA4
monochromatic
#A91FFB #C05BFC #D797FD #EED3FE #F3E1FE
Accessibility & contrast
On white
2.16
#D797FD on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.73
#D797FD on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D797FD
9.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D797FD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D797FD | 1.00 | 2.16 | 9.73 | 9.73 |
| #FFFFFF | 2.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.73 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.73 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#83ADFF
Deuteranopia (green-blind)
#93B2FA
Tritanopia (blue-blind)
#D3A6BE
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #d797fd; /* rgb */ color: rgb(215, 151, 253); /* oklch */ color: oklch(77.6% 0.155 312.0);
Tailwind
colors: {
custom: {
50: '#e5b6fe',
500: '#d797fd',
950: '#000000',
},
}SCSS
$custom: #d797fd; $custom-light: #e5b6fe; $custom-dark: #000000;
JSON
{
"hex": "#d797fd",
"rgb": {
"r": 215,
"g": 151,
"b": 253
},
"hsl": {
"h": 277.647,
"s": 96.226,
"l": 79.216
},
"oklch": {
"l": 0.77563,
"c": 0.15494,
"h": 312
},
"luminance": 0.43672
}Semantic roles & 50–950 ramp
primary
#D797FD
secondary
#E1F7D4
accent
#E60056
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161118
muted
#848086