#D796FC#D796FC
#D796FC is a light, vivid violet. Relative luminance 0.433; OKLCH L 77.4% C 0.155 H 312.5°. Best body text is #000000 at 9.66:1 contrast (WCAG AA passes).
Color values
| HEX | #D796FC |
|---|---|
| RGB | rgb(215, 150, 252) |
| HSL | hsl(278, 94%, 79%) |
| HSV | hsv(278, 40%, 99%) |
| CMYK | cmyk(14.7%, 40.5%, 0%, 1.2%) |
| CIE-LAB | lab(71.75, 42.17, -41.45) |
| CIE-LCH | lch(71.75, 59.13, 315.49°) |
| OKLab | oklab(77.35% 0.105 -0.1147) |
| OKLCH | oklch(77.35% 0.155 312.5) |
| XYZ | xyz(56.4984, 43.2891, 97.4559) |
| Luminance | 0.4329 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Baby Purple
#CA9BF7
ΔE00 2.96
Lilac (survey)
#CEA2FD
ΔE00 3.80
Pastel Purple
#CAA0FF
ΔE00 4.07
Liliac
#C48EFD
ΔE00 4.21
Lavender (survey)
#C79FEF
ΔE00 4.58
Mauve
#E0B0FF
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D796FC #BBFC96
analogous
#A496FC #D796FC #FC96EE
triadic
#D796FC #FCD796 #96FCD7
tetradic
#D796FC #FCA496 #BBFC96 #96EEFC
square
#D796FC #FCA496 #BBFC96 #96EEFC
split-complementary
#D796FC #EEFC96 #96FCA4
monochromatic
#AA1FF9 #C05BFA #D796FC #EED2FE #F4E1FE
Accessibility & contrast
On white
2.17
#D796FC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.66
#D796FC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D796FC
9.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D796FC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D796FC | 1.00 | 2.17 | 9.66 | 9.66 |
| #FFFFFF | 2.17 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.66 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.66 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#82ACFF
Deuteranopia (green-blind)
#93B1F9
Tritanopia (blue-blind)
#D4A5BD
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #d796fc; /* rgb */ color: rgb(215, 150, 252); /* oklch */ color: oklch(77.4% 0.155 312.5);
Tailwind
colors: {
custom: {
50: '#e5b6fd',
500: '#d796fc',
950: '#000000',
},
}SCSS
$custom: #d796fc; $custom-light: #e5b6fd; $custom-dark: #000000;
JSON
{
"hex": "#d796fc",
"rgb": {
"r": 215,
"g": 150,
"b": 252
},
"hsl": {
"h": 278.235,
"s": 94.444,
"l": 78.824
},
"oklch": {
"l": 0.77354,
"c": 0.15546,
"h": 312.5
},
"luminance": 0.43288
}Semantic roles & 50–950 ramp
primary
#D796FC
secondary
#E1F6D5
accent
#E60053
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161118
muted
#848086