#C786F8#C786F8
#C786F8 is a light, vivid violet. Relative luminance 0.360; OKLCH L 73.0% C 0.171 H 309.0°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).
Color values
| HEX | #C786F8 |
|---|---|
| RGB | rgb(199, 134, 248) |
| HSL | hsl(274, 89%, 75%) |
| HSV | hsv(274, 46%, 97%) |
| CMYK | cmyk(19.8%, 46%, 0%, 2.7%) |
| CIE-LAB | lab(66.50, 45.38, -47.62) |
| CIE-LCH | lch(66.50, 65.78, 313.62°) |
| OKLab | oklab(72.98% 0.1077 -0.1328) |
| OKLCH | oklch(72.98% 0.171 309) |
| XYZ | xyz(49.0183, 35.9703, 93.1494) |
| Luminance | 0.3597 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 2.25
Light Purple
#BF77F6
ΔE00 3.82
Easter Purple
#C071FE
ΔE00 5.24
Baby Purple
#CA9BF7
ΔE00 5.35
Pastel Purple
#CAA0FF
ΔE00 6.42
Light Urple
#B36FF6
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C786F8 #B7F886
analogous
#8E86F8 #C786F8 #F886F0
triadic
#C786F8 #F8C786 #86F8C7
tetradic
#C786F8 #F88E86 #B7F886 #86F0F8
square
#C786F8 #F88E86 #B7F886 #86F0F8
split-complementary
#C786F8 #F0F886 #86F88E
monochromatic
#9112F1 #AC4CF5 #C786F8 #E2C0FB #F2E2FD
Accessibility & contrast
On white
2.56
#C786F8 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.19
#C786F8 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C786F8
8.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C786F8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C786F8 | 1.00 | 2.56 | 8.19 | 8.19 |
| #FFFFFF | 2.56 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.19 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.19 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6B9FFC
Deuteranopia (green-blind)
#7CA3F5
Tritanopia (blue-blind)
#C198B3
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #c786f8; /* rgb */ color: rgb(199, 134, 248); /* oklch */ color: oklch(73.0% 0.171 309.0);
Tailwind
colors: {
custom: {
50: '#daaafb',
500: '#c786f8',
950: '#000000',
},
}SCSS
$custom: #c786f8; $custom-light: #daaafb; $custom-dark: #000000;
JSON
{
"hex": "#c786f8",
"rgb": {
"r": 199,
"g": 134,
"b": 248
},
"hsl": {
"h": 274.211,
"s": 89.063,
"l": 74.902
},
"oklch": {
"l": 0.72981,
"c": 0.17099,
"h": 309
},
"luminance": 0.3597
}Semantic roles & 50–950 ramp
primary
#C786F8
secondary
#E3F5D6
accent
#E60063
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85