#C786FB#C786FB
#C786FB is a light, vivid violet. Relative luminance 0.362; OKLCH L 73.1% C 0.174 H 308.3°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).
Color values
| HEX | #C786FB |
|---|---|
| RGB | rgb(199, 134, 251) |
| HSL | hsl(273, 94%, 75%) |
| HSV | hsv(273, 47%, 98%) |
| CMYK | cmyk(20.7%, 46.6%, 0%, 1.6%) |
| CIE-LAB | lab(66.64, 46.03, -49.04) |
| CIE-LCH | lch(66.64, 67.26, 313.19°) |
| OKLab | oklab(73.13% 0.1081 -0.1369) |
| OKLCH | oklch(73.13% 0.174 308.3) |
| XYZ | xyz(49.4875, 36.1580, 95.6202) |
| Luminance | 0.3616 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 2.11
Light Purple
#BF77F6
ΔE00 3.77
Easter Purple
#C071FE
ΔE00 5.09
Baby Purple
#CA9BF7
ΔE00 5.47
Pastel Purple
#CAA0FF
ΔE00 6.42
Light Urple
#B36FF6
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C786FB #BAFB86
analogous
#8C86FB #C786FB #FB86F5
triadic
#C786FB #FBC786 #86FBC7
tetradic
#C786FB #FB8C86 #BAFB86 #86F5FB
square
#C786FB #FB8C86 #BAFB86 #86F5FB
split-complementary
#C786FB #F5FB86 #86FB8C
monochromatic
#9010F7 #AC4BF9 #C786FB #E2C1FD #F1E1FE
Accessibility & contrast
On white
2.55
#C786FB on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.23
#C786FB on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C786FB
8.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C786FB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C786FB | 1.00 | 2.55 | 8.23 | 8.23 |
| #FFFFFF | 2.55 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.23 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.23 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#699FFF
Deuteranopia (green-blind)
#7AA3F8
Tritanopia (blue-blind)
#C099B5
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #c786fb; /* rgb */ color: rgb(199, 134, 251); /* oklch */ color: oklch(73.1% 0.174 308.3);
Tailwind
colors: {
custom: {
50: '#daabfd',
500: '#c786fb',
950: '#000000',
},
}SCSS
$custom: #c786fb; $custom-light: #daabfd; $custom-dark: #000000;
JSON
{
"hex": "#c786fb",
"rgb": {
"r": 199,
"g": 134,
"b": 251
},
"hsl": {
"h": 273.333,
"s": 93.6,
"l": 75.49
},
"oklch": {
"l": 0.73135,
"c": 0.17445,
"h": 308.3
},
"luminance": 0.36157
}Semantic roles & 50–950 ramp
primary
#C786FB
secondary
#E4F6D5
accent
#E60066
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86