#C786EF#C786EF
#C786EF is a light, vivid violet. Relative luminance 0.354; OKLCH L 72.5% C 0.161 H 311.5°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).
Color values
| HEX | #C786EF |
|---|---|
| RGB | rgb(199, 134, 239) |
| HSL | hsl(277, 77%, 73%) |
| HSV | hsv(277, 44%, 94%) |
| CMYK | cmyk(16.7%, 43.9%, 0%, 6.3%) |
| CIE-LAB | lab(66.08, 43.43, -43.34) |
| CIE-LCH | lch(66.08, 61.36, 315.06°) |
| OKLab | oklab(72.53% 0.1064 -0.1204) |
| OKLCH | oklch(72.53% 0.161 311.5) |
| XYZ | xyz(47.6555, 35.4252, 85.9719) |
| Luminance | 0.3542 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.18
Light Purple
#BF77F6
ΔE00 4.37
Baby Purple
#CA9BF7
ΔE00 5.22
Easter Purple
#C071FE
ΔE00 5.97
Pale Purple
#B790D4
ΔE00 6.48
Pastel Purple
#CAA0FF
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C786EF #AEEF86
analogous
#9286EF #C786EF #EF86E2
triadic
#C786EF #EFC786 #86EFC7
tetradic
#C786EF #EF9286 #AEEF86 #86E2EF
square
#C786EF #EF9286 #AEEF86 #86E2EF
split-complementary
#C786EF #E2EF86 #86EF92
monochromatic
#941DDD #AE50E8 #C786EF #E0BCF6 #F2E4FB
Accessibility & contrast
On white
2.60
#C786EF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.08
#C786EF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C786EF
8.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C786EF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C786EF | 1.00 | 2.60 | 8.08 | 8.08 |
| #FFFFFF | 2.60 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.08 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.08 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#709DF3
Deuteranopia (green-blind)
#81A2EC
Tritanopia (blue-blind)
#C396AF
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #c786ef; /* rgb */ color: rgb(199, 134, 239); /* oklch */ color: oklch(72.5% 0.161 311.5);
Tailwind
colors: {
custom: {
50: '#daaaf4',
500: '#c786ef',
950: '#000000',
},
}SCSS
$custom: #c786ef; $custom-light: #daaaf4; $custom-dark: #000000;
JSON
{
"hex": "#c786ef",
"rgb": {
"r": 199,
"g": 134,
"b": 239
},
"hsl": {
"h": 277.143,
"s": 76.642,
"l": 73.137
},
"oklch": {
"l": 0.72531,
"c": 0.16066,
"h": 311.5
},
"luminance": 0.35424
}Semantic roles & 50–950 ramp
primary
#C786EF
secondary
#E2F3D8
accent
#D90D5A
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85