#D796FA#D796FA
#D796FA is a light, vivid violet. Relative luminance 0.432; OKLCH L 77.3% C 0.153 H 313.1°. Best body text is #000000 at 9.63:1 contrast (WCAG AA passes).
Color values
| HEX | #D796FA |
|---|---|
| RGB | rgb(215, 150, 250) |
| HSL | hsl(279, 91%, 78%) |
| HSV | hsv(279, 40%, 98%) |
| CMYK | cmyk(14%, 40%, 0%, 2%) |
| CIE-LAB | lab(71.67, 41.75, -40.50) |
| CIE-LCH | lch(71.67, 58.17, 315.88°) |
| OKLab | oklab(77.26% 0.1046 -0.1119) |
| OKLCH | oklch(77.26% 0.153 313.1) |
| XYZ | xyz(56.1831, 43.1630, 95.7956) |
| Luminance | 0.4316 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Baby Purple
#CA9BF7
ΔE00 2.99
Lilac (survey)
#CEA2FD
ΔE00 3.86
Pastel Purple
#CAA0FF
ΔE00 4.20
Liliac
#C48EFD
ΔE00 4.41
Lavender (survey)
#C79FEF
ΔE00 4.48
Mauve
#E0B0FF
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D796FA #B9FA96
analogous
#A596FA #D796FA #FA96EB
triadic
#D796FA #FAD796 #96FAD7
tetradic
#D796FA #FAA596 #B9FA96 #96EBFA
square
#D796FA #FAA596 #B9FA96 #96EBFA
split-complementary
#D796FA #EBFA96 #96FAA5
monochromatic
#AA21F4 #C15CF7 #D796FA #EDD0FD #F4E2FE
Accessibility & contrast
On white
2.18
#D796FA on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.63
#D796FA on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D796FA
9.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D796FA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D796FA | 1.00 | 2.18 | 9.63 | 9.63 |
| #FFFFFF | 2.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.63 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.63 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#83ACFE
Deuteranopia (green-blind)
#94B1F7
Tritanopia (blue-blind)
#D4A4BC
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #d796fa; /* rgb */ color: rgb(215, 150, 250); /* oklch */ color: oklch(77.3% 0.153 313.1);
Tailwind
colors: {
custom: {
50: '#e5b6fc',
500: '#d796fa',
950: '#000000',
},
}SCSS
$custom: #d796fa; $custom-light: #e5b6fc; $custom-dark: #000000;
JSON
{
"hex": "#d796fa",
"rgb": {
"r": 215,
"g": 150,
"b": 250
},
"hsl": {
"h": 279,
"s": 90.909,
"l": 78.431
},
"oklch": {
"l": 0.77262,
"c": 0.15318,
"h": 313.1
},
"luminance": 0.43162
}Semantic roles & 50–950 ramp
primary
#D796FA
secondary
#E1F6D5
accent
#E60050
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161117
muted
#848085