#C786F7#C786F7
#C786F7 is a light, vivid violet. Relative luminance 0.359; OKLCH L 72.9% C 0.170 H 309.3°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).
Color values
| HEX | #C786F7 |
|---|---|
| RGB | rgb(199, 134, 247) |
| HSL | hsl(275, 88%, 75%) |
| HSV | hsv(275, 46%, 97%) |
| CMYK | cmyk(19.4%, 45.7%, 0%, 3.1%) |
| CIE-LAB | lab(66.45, 45.16, -47.15) |
| CIE-LCH | lch(66.45, 65.29, 313.76°) |
| OKLab | oklab(72.93% 0.1076 -0.1314) |
| OKLCH | oklch(72.93% 0.17 309.3) |
| XYZ | xyz(48.8636, 35.9084, 92.3345) |
| Luminance | 0.3591 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 2.32
Light Purple
#BF77F6
ΔE00 3.86
Easter Purple
#C071FE
ΔE00 5.30
Baby Purple
#CA9BF7
ΔE00 5.31
Pastel Purple
#CAA0FF
ΔE00 6.42
Light Urple
#B36FF6
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C786F7 #B6F786
analogous
#8E86F7 #C786F7 #F786EF
triadic
#C786F7 #F7C786 #86F7C7
tetradic
#C786F7 #F78E86 #B6F786 #86EFF7
square
#C786F7 #F78E86 #B6F786 #86EFF7
split-complementary
#C786F7 #EFF786 #86F78E
monochromatic
#9213EF #AC4DF3 #C786F7 #E2BFFB #F2E2FD
Accessibility & contrast
On white
2.57
#C786F7 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.18
#C786F7 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C786F7
8.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C786F7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C786F7 | 1.00 | 2.57 | 8.18 | 8.18 |
| #FFFFFF | 2.57 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.18 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.18 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6B9FFB
Deuteranopia (green-blind)
#7CA3F4
Tritanopia (blue-blind)
#C198B3
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #c786f7; /* rgb */ color: rgb(199, 134, 247); /* oklch */ color: oklch(72.9% 0.170 309.3);
Tailwind
colors: {
custom: {
50: '#daaafa',
500: '#c786f7',
950: '#000000',
},
}SCSS
$custom: #c786f7; $custom-light: #daaafa; $custom-dark: #000000;
JSON
{
"hex": "#c786f7",
"rgb": {
"r": 199,
"g": 134,
"b": 247
},
"hsl": {
"h": 274.513,
"s": 87.597,
"l": 74.706
},
"oklch": {
"l": 0.7293,
"c": 0.16984,
"h": 309.3
},
"luminance": 0.35908
}Semantic roles & 50–950 ramp
primary
#C786F7
secondary
#E3F5D6
accent
#E40162
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85