#C786EE#C786EE
#C786EE is a light, vivid violet. Relative luminance 0.354; OKLCH L 72.5% C 0.160 H 311.8°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).
Color values
| HEX | #C786EE |
|---|---|
| RGB | rgb(199, 134, 238) |
| HSL | hsl(278, 75%, 73%) |
| HSV | hsv(278, 44%, 93%) |
| CMYK | cmyk(16.4%, 43.7%, 0%, 6.7%) |
| CIE-LAB | lab(66.03, 43.22, -42.86) |
| CIE-LCH | lch(66.03, 60.87, 315.24°) |
| OKLab | oklab(72.48% 0.1062 -0.119) |
| OKLCH | oklch(72.48% 0.16 311.8) |
| XYZ | xyz(47.5082, 35.3662, 85.1960) |
| Luminance | 0.3537 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.32
Light Purple
#BF77F6
ΔE00 4.47
Baby Purple
#CA9BF7
ΔE00 5.24
Easter Purple
#C071FE
ΔE00 6.08
Pale Purple
#B790D4
ΔE00 6.36
Lavender (survey)
#C79FEF
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C786EE #ADEE86
analogous
#9386EE #C786EE #EE86E1
triadic
#C786EE #EEC786 #86EEC7
tetradic
#C786EE #EE9386 #ADEE86 #86E1EE
square
#C786EE #EE9386 #ADEE86 #86E1EE
split-complementary
#C786EE #E1EE86 #86EE93
monochromatic
#941FDB #AE50E6 #C786EE #E0BCF6 #F3E4FB
Accessibility & contrast
On white
2.60
#C786EE on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.07
#C786EE on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C786EE
8.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C786EE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C786EE | 1.00 | 2.60 | 8.07 | 8.07 |
| #FFFFFF | 2.60 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.07 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.07 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#709DF2
Deuteranopia (green-blind)
#81A2EB
Tritanopia (blue-blind)
#C396AF
Achromatopsia (no color)
#A0A0A0
Design tokens & code
CSS
--color: #c786ee; /* rgb */ color: rgb(199, 134, 238); /* oklch */ color: oklch(72.5% 0.160 311.8);
Tailwind
colors: {
custom: {
50: '#daaaf4',
500: '#c786ee',
950: '#000000',
},
}SCSS
$custom: #c786ee; $custom-light: #daaaf4; $custom-dark: #000000;
JSON
{
"hex": "#c786ee",
"rgb": {
"r": 199,
"g": 134,
"b": 238
},
"hsl": {
"h": 277.5,
"s": 75.362,
"l": 72.941
},
"oklch": {
"l": 0.72482,
"c": 0.15952,
"h": 311.8
},
"luminance": 0.35365
}Semantic roles & 50–950 ramp
primary
#C786EE
secondary
#E2F3D8
accent
#D80E5A
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85