#C786FF#C786FF
#C786FF is a light, vivid violet. Relative luminance 0.364; OKLCH L 73.3% C 0.179 H 307.3°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).
Color values
| HEX | #C786FF |
|---|---|
| RGB | rgb(199, 134, 255) |
| HSL | hsl(272, 100%, 76%) |
| HSV | hsv(272, 47%, 100%) |
| CMYK | cmyk(22%, 47.5%, 0%, 0%) |
| CIE-LAB | lab(66.83, 46.92, -50.92) |
| CIE-LCH | lch(66.83, 69.24, 312.66°) |
| OKLab | oklab(73.34% 0.1086 -0.1424) |
| OKLCH | oklch(73.34% 0.179 307.3) |
| XYZ | xyz(50.1247, 36.4128, 98.9761) |
| Luminance | 0.3641 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 2.09
Light Purple
#BF77F6
ΔE00 3.81
Easter Purple
#C071FE
ΔE00 4.96
Baby Purple
#CA9BF7
ΔE00 5.70
Pastel Purple
#CAA0FF
ΔE00 6.48
Light Urple
#B36FF6
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C786FF #BEFF86
analogous
#8B86FF #C786FF #FF86FB
triadic
#C786FF #FFC786 #86FFC7
tetradic
#C786FF #FF8B86 #BEFF86 #86FBFF
square
#C786FF #FF8B86 #BEFF86 #86FBFF
split-complementary
#C786FF #FBFF86 #86FF8B
monochromatic
#8E0CFF #AB49FF #C786FF #E3C3FF #F1E0FF
Accessibility & contrast
On white
2.54
#C786FF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.28
#C786FF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C786FF
8.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C786FF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C786FF | 1.00 | 2.54 | 8.28 | 8.28 |
| #FFFFFF | 2.54 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.28 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.28 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#66A0FF
Deuteranopia (green-blind)
#78A3FC
Tritanopia (blue-blind)
#BF9AB7
Achromatopsia (no color)
#A3A3A3
Design tokens & code
CSS
--color: #c786ff; /* rgb */ color: rgb(199, 134, 255); /* oklch */ color: oklch(73.3% 0.179 307.3);
Tailwind
colors: {
custom: {
50: '#daabff',
500: '#c786ff',
950: '#000000',
},
}SCSS
$custom: #c786ff; $custom-light: #daabff; $custom-dark: #000000;
JSON
{
"hex": "#c786ff",
"rgb": {
"r": 199,
"g": 134,
"b": 255
},
"hsl": {
"h": 272.231,
"s": 100,
"l": 76.275
},
"oklch": {
"l": 0.73342,
"c": 0.17907,
"h": 307.3
},
"luminance": 0.36412
}Semantic roles & 50–950 ramp
primary
#C786FF
secondary
#E4F7D4
accent
#E6006A
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86