#C787FC#C787FC
#C787FC is a light, vivid violet. Relative luminance 0.365; OKLCH L 73.3% C 0.174 H 307.9°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).
Color values
| HEX | #C787FC |
|---|---|
| RGB | rgb(199, 135, 252) |
| HSL | hsl(273, 95%, 76%) |
| HSV | hsv(273, 46%, 99%) |
| CMYK | cmyk(21%, 46.4%, 0%, 1.2%) |
| CIE-LAB | lab(66.90, 45.72, -49.18) |
| CIE-LCH | lch(66.90, 67.15, 312.91°) |
| OKLab | oklab(73.34% 0.1069 -0.1373) |
| OKLCH | oklch(73.34% 0.174 307.9) |
| XYZ | xyz(49.7844, 36.4989, 96.4989) |
| Luminance | 0.3650 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 1.86
Light Purple
#BF77F6
ΔE00 3.99
Easter Purple
#C071FE
ΔE00 5.27
Baby Purple
#CA9BF7
ΔE00 5.29
Pastel Purple
#CAA0FF
ΔE00 6.20
Light Urple
#B36FF6
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C787FC #BCFC87
analogous
#8C87FC #C787FC #FC87F6
triadic
#C787FC #FCC787 #87FCC7
tetradic
#C787FC #FC8C87 #BCFC87 #87F6FC
square
#C787FC #FC8C87 #BCFC87 #87F6FC
split-complementary
#C787FC #F6FC87 #87FC8C
monochromatic
#8F10F9 #AB4BFB #C787FC #E3C3FD #F1E1FE
Accessibility & contrast
On white
2.53
#C787FC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.30
#C787FC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C787FC
8.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C787FC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C787FC | 1.00 | 2.53 | 8.30 | 8.30 |
| #FFFFFF | 2.53 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.30 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.30 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#69A0FF
Deuteranopia (green-blind)
#7BA4F9
Tritanopia (blue-blind)
#C09AB6
Achromatopsia (no color)
#A3A3A3
Design tokens & code
CSS
--color: #c787fc; /* rgb */ color: rgb(199, 135, 252); /* oklch */ color: oklch(73.3% 0.174 307.9);
Tailwind
colors: {
custom: {
50: '#daabfe',
500: '#c787fc',
950: '#000000',
},
}SCSS
$custom: #c787fc; $custom-light: #daabfe; $custom-dark: #000000;
JSON
{
"hex": "#c787fc",
"rgb": {
"r": 199,
"g": 135,
"b": 252
},
"hsl": {
"h": 272.821,
"s": 95.122,
"l": 75.882
},
"oklch": {
"l": 0.73344,
"c": 0.17402,
"h": 307.9
},
"luminance": 0.36498
}Semantic roles & 50–950 ramp
primary
#C787FC
secondary
#E4F6D5
accent
#E60068
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86