#C796F9#C796F9
#C796F9 is a light, vivid violet. Relative luminance 0.408; OKLCH L 75.7% C 0.146 H 306.0°. Best body text is #000000 at 9.16:1 contrast (WCAG AA passes).
Color values
| HEX | #C796F9 |
|---|---|
| RGB | rgb(199, 150, 249) |
| HSL | hsl(270, 89%, 78%) |
| HSV | hsv(270, 40%, 98%) |
| CMYK | cmyk(20.1%, 39.8%, 0%, 2.4%) |
| CIE-LAB | lab(70.03, 36.94, -42.62) |
| CIE-LCH | lch(70.03, 56.40, 310.92°) |
| OKLab | oklab(75.65% 0.0859 -0.1184) |
| OKLCH | oklch(75.65% 0.146 306) |
| XYZ | xyz(51.5550, 40.7947, 94.7623) |
| Luminance | 0.4079 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Baby Purple
#CA9BF7
ΔE00 1.56
Liliac
#C48EFD
ΔE00 2.36
Pastel Purple
#CAA0FF
ΔE00 2.51
Lilac (survey)
#CEA2FD
ΔE00 3.05
Lavender (survey)
#C79FEF
ΔE00 3.47
Pale Violet
#CEAEFA
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C796F9 #C8F996
analogous
#9696F9 #C796F9 #F896F9
triadic
#C796F9 #F9C796 #96F9C7
tetradic
#C796F9 #F99696 #C8F996 #96F9F8
square
#C796F9 #F99696 #C8F996 #96F9F8
split-complementary
#C796F9 #F9F896 #96F996
monochromatic
#8922F2 #A85CF6 #C796F9 #E6D0FC #F0E2FD
Accessibility & contrast
On white
2.29
#C796F9 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.16
#C796F9 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C796F9
9.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C796F9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C796F9 | 1.00 | 2.29 | 9.16 | 9.16 |
| #FFFFFF | 2.29 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.16 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.16 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7FA9FD
Deuteranopia (green-blind)
#8BACF6
Tritanopia (blue-blind)
#C0A6BC
Achromatopsia (no color)
#ABABAB
Design tokens & code
CSS
--color: #c796f9; /* rgb */ color: rgb(199, 150, 249); /* oklch */ color: oklch(75.7% 0.146 306.0);
Tailwind
colors: {
custom: {
50: '#d9b5fb',
500: '#c796f9',
950: '#000000',
},
}SCSS
$custom: #c796f9; $custom-light: #d9b5fb; $custom-dark: #000000;
JSON
{
"hex": "#c796f9",
"rgb": {
"r": 199,
"g": 150,
"b": 249
},
"hsl": {
"h": 269.697,
"s": 89.189,
"l": 78.235
},
"oklch": {
"l": 0.75651,
"c": 0.14627,
"h": 306
},
"luminance": 0.40794
}Semantic roles & 50–950 ramp
primary
#C796F9
secondary
#E6F5D6
accent
#E60074
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085