#C790F8#C790F8
#C790F8 is a light, vivid violet. Relative luminance 0.389; OKLCH L 74.6% C 0.155 H 307.4°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).
Color values
| HEX | #C790F8 |
|---|---|
| RGB | rgb(199, 144, 248) |
| HSL | hsl(272, 88%, 77%) |
| HSV | hsv(272, 42%, 97%) |
| CMYK | cmyk(19.8%, 41.9%, 0%, 2.7%) |
| CIE-LAB | lab(68.65, 39.99, -44.23) |
| CIE-LCH | lch(68.65, 59.63, 312.12°) |
| OKLab | oklab(74.6% 0.0941 -0.123) |
| OKLCH | oklch(74.6% 0.155 307.4) |
| XYZ | xyz(50.4664, 38.8664, 93.6321) |
| Luminance | 0.3887 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 1.36
Baby Purple
#CA9BF7
ΔE00 2.92
Pastel Purple
#CAA0FF
ΔE00 4.00
Lilac (survey)
#CEA2FD
ΔE00 4.49
Lavender (survey)
#C79FEF
ΔE00 4.73
Light Purple
#BF77F6
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C790F8 #C1F890
analogous
#9390F8 #C790F8 #F890F5
triadic
#C790F8 #F8C790 #90F8C7
tetradic
#C790F8 #F89390 #C1F890 #90F5F8
square
#C790F8 #F89390 #C1F890 #90F5F8
split-complementary
#C790F8 #F5F890 #90F893
monochromatic
#8D1DF1 #AA56F4 #C790F8 #E4CAFC #F0E2FD
Accessibility & contrast
On white
2.39
#C790F8 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.77
#C790F8 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C790F8
8.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C790F8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C790F8 | 1.00 | 2.39 | 8.77 | 8.77 |
| #FFFFFF | 2.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.77 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.77 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#78A5FC
Deuteranopia (green-blind)
#85A8F5
Tritanopia (blue-blind)
#C0A0B8
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #c790f8; /* rgb */ color: rgb(199, 144, 248); /* oklch */ color: oklch(74.6% 0.155 307.4);
Tailwind
colors: {
custom: {
50: '#dab1fb',
500: '#c790f8',
950: '#000000',
},
}SCSS
$custom: #c790f8; $custom-light: #dab1fb; $custom-dark: #000000;
JSON
{
"hex": "#c790f8",
"rgb": {
"r": 199,
"g": 144,
"b": 248
},
"hsl": {
"h": 271.731,
"s": 88.136,
"l": 76.863
},
"oklch": {
"l": 0.74598,
"c": 0.15484,
"h": 307.4
},
"luminance": 0.38866
}Semantic roles & 50–950 ramp
primary
#C790F8
secondary
#E5F5D6
accent
#E5016C
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085