#C791FC#C791FC
#C791FC is a light, vivid violet. Relative luminance 0.394; OKLCH L 75.0% C 0.158 H 306.2°. Best body text is #000000 at 8.88:1 contrast (WCAG AA passes).
Color values
| HEX | #C791FC |
|---|---|
| RGB | rgb(199, 145, 252) |
| HSL | hsl(270, 95%, 78%) |
| HSV | hsv(270, 42%, 99%) |
| CMYK | cmyk(21%, 42.5%, 0%, 1.2%) |
| CIE-LAB | lab(69.06, 40.33, -45.79) |
| CIE-LCH | lch(69.06, 61.02, 311.38°) |
| OKLab | oklab(74.96% 0.0934 -0.1275) |
| OKLCH | oklch(74.96% 0.158 306.2) |
| XYZ | xyz(51.2457, 39.4216, 96.9860) |
| Luminance | 0.3942 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 0.99
Baby Purple
#CA9BF7
ΔE00 2.98
Pastel Purple
#CAA0FF
ΔE00 3.75
Lilac (survey)
#CEA2FD
ΔE00 4.38
Lavender (survey)
#C79FEF
ΔE00 4.91
Light Purple
#BF77F6
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C791FC #C6FC91
analogous
#9191FC #C791FC #FC91FC
triadic
#C791FC #FCC791 #91FCC7
tetradic
#C791FC #FC9191 #C6FC91 #91FCFC
square
#C791FC #FC9191 #C6FC91 #91FCFC
split-complementary
#C791FC #FCFC91 #91FC91
monochromatic
#8A1AF9 #A955FA #C791FC #E5CDFE #F0E1FE
Accessibility & contrast
On white
2.36
#C791FC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.88
#C791FC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C791FC
8.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C791FC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C791FC | 1.00 | 2.36 | 8.88 | 8.88 |
| #FFFFFF | 2.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#77A7FF
Deuteranopia (green-blind)
#84A9F9
Tritanopia (blue-blind)
#BFA2BB
Achromatopsia (no color)
#A9A9A9
Design tokens & code
CSS
--color: #c791fc; /* rgb */ color: rgb(199, 145, 252); /* oklch */ color: oklch(75.0% 0.158 306.2);
Tailwind
colors: {
custom: {
50: '#dab2fe',
500: '#c791fc',
950: '#000000',
},
}SCSS
$custom: #c791fc; $custom-light: #dab2fe; $custom-dark: #000000;
JSON
{
"hex": "#c791fc",
"rgb": {
"r": 199,
"g": 145,
"b": 252
},
"hsl": {
"h": 270.28,
"s": 94.69,
"l": 77.843
},
"oklch": {
"l": 0.74959,
"c": 0.15802,
"h": 306.2
},
"luminance": 0.39421
}Semantic roles & 50–950 ramp
primary
#C791FC
secondary
#E5F6D5
accent
#E60072
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086