#D796FD#D796FD
#D796FD is a light, vivid violet. Relative luminance 0.434; OKLCH L 77.4% C 0.157 H 312.2°. Best body text is #000000 at 9.67:1 contrast (WCAG AA passes).
Color values
| HEX | #D796FD |
|---|---|
| RGB | rgb(215, 150, 253) |
| HSL | hsl(278, 96%, 79%) |
| HSV | hsv(278, 41%, 99%) |
| CMYK | cmyk(15%, 40.7%, 0%, 0.8%) |
| CIE-LAB | lab(71.79, 42.38, -41.92) |
| CIE-LCH | lch(71.79, 59.61, 315.31°) |
| OKLab | oklab(77.4% 0.1052 -0.116) |
| OKLCH | oklch(77.4% 0.157 312.2) |
| XYZ | xyz(56.6573, 43.3527, 98.2927) |
| Luminance | 0.4335 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Baby Purple
#CA9BF7
ΔE00 2.97
Lilac (survey)
#CEA2FD
ΔE00 3.78
Pastel Purple
#CAA0FF
ΔE00 4.02
Liliac
#C48EFD
ΔE00 4.12
Lavender (survey)
#C79FEF
ΔE00 4.64
Mauve
#E0B0FF
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D796FD #BCFD96
analogous
#A496FD #D796FD #FD96F0
triadic
#D796FD #FDD796 #96FDD7
tetradic
#D796FD #FDA496 #BCFD96 #96F0FD
square
#D796FD #FDA496 #BCFD96 #96F0FD
split-complementary
#D796FD #F0FD96 #96FDA4
monochromatic
#A91EFB #C05AFC #D796FD #EED2FE #F4E1FE
Accessibility & contrast
On white
2.17
#D796FD on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.67
#D796FD on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D796FD
9.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D796FD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D796FD | 1.00 | 2.17 | 9.67 | 9.67 |
| #FFFFFF | 2.17 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.67 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.67 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#82ACFF
Deuteranopia (green-blind)
#92B1FA
Tritanopia (blue-blind)
#D3A5BE
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #d796fd; /* rgb */ color: rgb(215, 150, 253); /* oklch */ color: oklch(77.4% 0.157 312.2);
Tailwind
colors: {
custom: {
50: '#e5b6fe',
500: '#d796fd',
950: '#000000',
},
}SCSS
$custom: #d796fd; $custom-light: #e5b6fe; $custom-dark: #000000;
JSON
{
"hex": "#d796fd",
"rgb": {
"r": 215,
"g": 150,
"b": 253
},
"hsl": {
"h": 277.864,
"s": 96.262,
"l": 79.02
},
"oklch": {
"l": 0.774,
"c": 0.1566,
"h": 312.2
},
"luminance": 0.43352
}Semantic roles & 50–950 ramp
primary
#D796FD
secondary
#E1F7D4
accent
#E60055
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161118
muted
#848086