#C786FA#C786FA
#C786FA is a light, vivid violet. Relative luminance 0.361; OKLCH L 73.1% C 0.173 H 308.5°. Best body text is #000000 at 8.22:1 contrast (WCAG AA passes).
Color values
| HEX | #C786FA |
|---|---|
| RGB | rgb(199, 134, 250) |
| HSL | hsl(274, 92%, 75%) |
| HSV | hsv(274, 46%, 98%) |
| CMYK | cmyk(20.4%, 46.4%, 0%, 2%) |
| CIE-LAB | lab(66.59, 45.81, -48.57) |
| CIE-LCH | lch(66.59, 66.77, 313.33°) |
| OKLab | oklab(73.08% 0.108 -0.1355) |
| OKLCH | oklch(73.08% 0.173 308.5) |
| XYZ | xyz(49.3303, 36.0951, 94.7923) |
| Luminance | 0.3609 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 2.14
Light Purple
#BF77F6
ΔE00 3.78
Easter Purple
#C071FE
ΔE00 5.13
Baby Purple
#CA9BF7
ΔE00 5.43
Pastel Purple
#CAA0FF
ΔE00 6.42
Light Urple
#B36FF6
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C786FA #B9FA86
analogous
#8D86FA #C786FA #FA86F3
triadic
#C786FA #FAC786 #86FAC7
tetradic
#C786FA #FA8D86 #B9FA86 #86F3FA
square
#C786FA #FA8D86 #B9FA86 #86F3FA
split-complementary
#C786FA #F3FA86 #86FA8D
monochromatic
#9110F5 #AC4BF8 #C786FA #E2C1FC #F1E2FE
Accessibility & contrast
On white
2.56
#C786FA on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.22
#C786FA on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C786FA
8.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C786FA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C786FA | 1.00 | 2.56 | 8.22 | 8.22 |
| #FFFFFF | 2.56 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.22 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.22 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#699FFE
Deuteranopia (green-blind)
#7BA3F7
Tritanopia (blue-blind)
#C099B4
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #c786fa; /* rgb */ color: rgb(199, 134, 250); /* oklch */ color: oklch(73.1% 0.173 308.5);
Tailwind
colors: {
custom: {
50: '#daabfc',
500: '#c786fa',
950: '#000000',
},
}SCSS
$custom: #c786fa; $custom-light: #daabfc; $custom-dark: #000000;
JSON
{
"hex": "#c786fa",
"rgb": {
"r": 199,
"g": 134,
"b": 250
},
"hsl": {
"h": 273.621,
"s": 92.063,
"l": 75.294
},
"oklch": {
"l": 0.73083,
"c": 0.1733,
"h": 308.5
},
"luminance": 0.36094
}Semantic roles & 50–950 ramp
primary
#C786FA
secondary
#E4F6D5
accent
#E60065
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85