#C786F9#C786F9
#C786F9 is a light, vivid violet. Relative luminance 0.360; OKLCH L 73.0% C 0.172 H 308.8°. Best body text is #000000 at 8.21:1 contrast (WCAG AA passes).
Color values
| HEX | #C786F9 |
|---|---|
| RGB | rgb(199, 134, 249) |
| HSL | hsl(274, 91%, 75%) |
| HSV | hsv(274, 46%, 98%) |
| CMYK | cmyk(20.1%, 46.2%, 0%, 2.4%) |
| CIE-LAB | lab(66.54, 45.60, -48.10) |
| CIE-LCH | lch(66.54, 66.27, 313.47°) |
| OKLab | oklab(73.03% 0.1079 -0.1342) |
| OKLCH | oklch(73.03% 0.172 308.8) |
| XYZ | xyz(49.1739, 36.0325, 93.9686) |
| Luminance | 0.3603 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 2.19
Light Purple
#BF77F6
ΔE00 3.80
Easter Purple
#C071FE
ΔE00 5.18
Baby Purple
#CA9BF7
ΔE00 5.39
Pastel Purple
#CAA0FF
ΔE00 6.42
Light Urple
#B36FF6
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C786F9 #B8F986
analogous
#8D86F9 #C786F9 #F986F1
triadic
#C786F9 #F9C786 #86F9C7
tetradic
#C786F9 #F98D86 #B8F986 #86F1F9
square
#C786F9 #F98D86 #B8F986 #86F1F9
split-complementary
#C786F9 #F1F986 #86F98D
monochromatic
#9111F3 #AC4CF6 #C786F9 #E2C0FC #F2E2FE
Accessibility & contrast
On white
2.56
#C786F9 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.21
#C786F9 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C786F9
8.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C786F9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C786F9 | 1.00 | 2.56 | 8.21 | 8.21 |
| #FFFFFF | 2.56 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.21 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.21 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6A9FFD
Deuteranopia (green-blind)
#7BA3F6
Tritanopia (blue-blind)
#C099B4
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #c786f9; /* rgb */ color: rgb(199, 134, 249); /* oklch */ color: oklch(73.0% 0.172 308.8);
Tailwind
colors: {
custom: {
50: '#daabfc',
500: '#c786f9',
950: '#000000',
},
}SCSS
$custom: #c786f9; $custom-light: #daabfc; $custom-dark: #000000;
JSON
{
"hex": "#c786f9",
"rgb": {
"r": 199,
"g": 134,
"b": 249
},
"hsl": {
"h": 273.913,
"s": 90.551,
"l": 75.098
},
"oklch": {
"l": 0.73032,
"c": 0.17214,
"h": 308.8
},
"luminance": 0.36032
}Semantic roles & 50–950 ramp
primary
#C786F9
secondary
#E3F6D5
accent
#E60064
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85