#C786FE#C786FE
#C786FE is a light, vivid violet. Relative luminance 0.363; OKLCH L 73.3% C 0.178 H 307.6°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).
Color values
| HEX | #C786FE |
|---|---|
| RGB | rgb(199, 134, 254) |
| HSL | hsl(273, 98%, 76%) |
| HSV | hsv(273, 47%, 100%) |
| CMYK | cmyk(21.7%, 47.2%, 0%, 0.4%) |
| CIE-LAB | lab(66.79, 46.70, -50.45) |
| CIE-LCH | lch(66.79, 68.75, 312.79°) |
| OKLab | oklab(73.29% 0.1085 -0.141) |
| OKLCH | oklch(73.29% 0.178 307.6) |
| XYZ | xyz(49.9641, 36.3486, 98.1306) |
| Luminance | 0.3635 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 2.08
Light Purple
#BF77F6
ΔE00 3.79
Easter Purple
#C071FE
ΔE00 4.98
Baby Purple
#CA9BF7
ΔE00 5.64
Pastel Purple
#CAA0FF
ΔE00 6.46
Light Urple
#B36FF6
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C786FE #BDFE86
analogous
#8B86FE #C786FE #FE86F9
triadic
#C786FE #FEC786 #86FEC7
tetradic
#C786FE #FE8B86 #BDFE86 #86F9FE
square
#C786FE #FE8B86 #BDFE86 #86F9FE
split-complementary
#C786FE #F9FE86 #86FE8B
monochromatic
#8F0DFD #AB49FD #C786FE #E3C3FF #F1E1FF
Accessibility & contrast
On white
2.54
#C786FE on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.27
#C786FE on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C786FE
8.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C786FE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C786FE | 1.00 | 2.54 | 8.27 | 8.27 |
| #FFFFFF | 2.54 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.27 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.27 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#67A0FF
Deuteranopia (green-blind)
#78A3FB
Tritanopia (blue-blind)
#BF9AB6
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #c786fe; /* rgb */ color: rgb(199, 134, 254); /* oklch */ color: oklch(73.3% 0.178 307.6);
Tailwind
colors: {
custom: {
50: '#daabff',
500: '#c786fe',
950: '#000000',
},
}SCSS
$custom: #c786fe; $custom-light: #daabff; $custom-dark: #000000;
JSON
{
"hex": "#c786fe",
"rgb": {
"r": 199,
"g": 134,
"b": 254
},
"hsl": {
"h": 272.5,
"s": 98.361,
"l": 76.078
},
"oklch": {
"l": 0.7329,
"c": 0.17792,
"h": 307.6
},
"luminance": 0.36348
}Semantic roles & 50–950 ramp
primary
#C786FE
secondary
#E4F7D4
accent
#E60069
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86