#C786EB#C786EB
#C786EB is a light, vivid violet. Relative luminance 0.352; OKLCH L 72.3% C 0.156 H 312.6°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).
Color values
| HEX | #C786EB |
|---|---|
| RGB | rgb(199, 134, 235) |
| HSL | hsl(279, 72%, 72%) |
| HSV | hsv(279, 43%, 92%) |
| CMYK | cmyk(15.3%, 43%, 0%, 7.8%) |
| CIE-LAB | lab(65.90, 42.58, -41.42) |
| CIE-LCH | lch(65.90, 59.40, 315.79°) |
| OKLab | oklab(72.34% 0.1057 -0.1148) |
| OKLCH | oklch(72.34% 0.156 312.6) |
| XYZ | xyz(47.0711, 35.1914, 82.8941) |
| Luminance | 0.3519 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.75
Light Purple
#BF77F6
ΔE00 4.78
Baby Purple
#CA9BF7
ΔE00 5.31
Pale Purple
#B790D4
ΔE00 6.02
Easter Purple
#C071FE
ΔE00 6.42
Lavender (survey)
#C79FEF
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C786EB #AAEB86
analogous
#9586EB #C786EB #EB86DC
triadic
#C786EB #EBC786 #86EBC7
tetradic
#C786EB #EB9586 #AAEB86 #86DCEB
square
#C786EB #EB9586 #AAEB86 #86DCEB
split-complementary
#C786EB #DCEB86 #86EB95
monochromatic
#9523D4 #AF51E2 #C786EB #DFBBF4 #F3E5FB
Accessibility & contrast
On white
2.61
#C786EB on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.04
#C786EB on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C786EB
8.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C786EB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C786EB | 1.00 | 2.61 | 8.04 | 8.04 |
| #FFFFFF | 2.61 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.04 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.04 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#729DEF
Deuteranopia (green-blind)
#83A2E8
Tritanopia (blue-blind)
#C495AD
Achromatopsia (no color)
#A0A0A0
Design tokens & code
CSS
--color: #c786eb; /* rgb */ color: rgb(199, 134, 235); /* oklch */ color: oklch(72.3% 0.156 312.6);
Tailwind
colors: {
custom: {
50: '#d9aaf2',
500: '#c786eb',
950: '#000000',
},
}SCSS
$custom: #c786eb; $custom-light: #d9aaf2; $custom-dark: #000000;
JSON
{
"hex": "#c786eb",
"rgb": {
"r": 199,
"g": 134,
"b": 235
},
"hsl": {
"h": 278.614,
"s": 71.631,
"l": 72.353
},
"oklch": {
"l": 0.72336,
"c": 0.1561,
"h": 312.6
},
"luminance": 0.3519
}Semantic roles & 50–950 ramp
primary
#C786EB
secondary
#E2F2D9
accent
#D41257
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85