#C787FE#C787FE
#C787FE is a light, vivid violet. Relative luminance 0.366; OKLCH L 73.4% C 0.176 H 307.4°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).
Color values
| HEX | #C787FE |
|---|---|
| RGB | rgb(199, 135, 254) |
| HSL | hsl(272, 98%, 76%) |
| HSV | hsv(272, 47%, 100%) |
| CMYK | cmyk(21.7%, 46.9%, 0%, 0.4%) |
| CIE-LAB | lab(67.00, 46.16, -50.12) |
| CIE-LCH | lch(67.00, 68.14, 312.65°) |
| OKLab | oklab(73.45% 0.1072 -0.14) |
| OKLCH | oklch(73.45% 0.176 307.4) |
| XYZ | xyz(50.1030, 36.6263, 98.1768) |
| Luminance | 0.3663 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 1.85
Light Purple
#BF77F6
ΔE00 4.01
Easter Purple
#C071FE
ΔE00 5.21
Baby Purple
#CA9BF7
ΔE00 5.41
Pastel Purple
#CAA0FF
ΔE00 6.23
Light Urple
#B36FF6
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C787FE #BEFE87
analogous
#8C87FE #C787FE #FE87F9
triadic
#C787FE #FEC787 #87FEC7
tetradic
#C787FE #FE8C87 #BEFE87 #87F9FE
square
#C787FE #FE8C87 #BEFE87 #87F9FE
split-complementary
#C787FE #F9FE87 #87FE8C
monochromatic
#8E0EFD #AB4AFD #C787FE #E3C4FF #F1E1FF
Accessibility & contrast
On white
2.52
#C787FE on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.33
#C787FE on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C787FE
8.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C787FE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C787FE | 1.00 | 2.52 | 8.33 | 8.33 |
| #FFFFFF | 2.52 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.33 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.33 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#68A1FF
Deuteranopia (green-blind)
#79A4FB
Tritanopia (blue-blind)
#BF9BB7
Achromatopsia (no color)
#A3A3A3
Design tokens & code
CSS
--color: #c787fe; /* rgb */ color: rgb(199, 135, 254); /* oklch */ color: oklch(73.4% 0.176 307.4);
Tailwind
colors: {
custom: {
50: '#daabff',
500: '#c787fe',
950: '#000000',
},
}SCSS
$custom: #c787fe; $custom-light: #daabff; $custom-dark: #000000;
JSON
{
"hex": "#c787fe",
"rgb": {
"r": 199,
"g": 135,
"b": 254
},
"hsl": {
"h": 272.269,
"s": 98.347,
"l": 76.275
},
"oklch": {
"l": 0.73447,
"c": 0.17634,
"h": 307.4
},
"luminance": 0.36626
}Semantic roles & 50–950 ramp
primary
#C787FE
secondary
#E4F7D4
accent
#E6006A
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86