#C040C8#C040C8
#C040C8 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.4% C 0.223 H 325.4°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).
Color values
| HEX | #C040C8 |
|---|---|
| RGB | rgb(192, 64, 200) |
| HSL | hsl(296, 55%, 52%) |
| HSV | hsv(296, 68%, 78%) |
| CMYK | cmyk(4%, 68%, 0%, 21.6%) |
| CIE-LAB | lab(50.74, 67.25, -45.66) |
| CIE-LCH | lch(50.74, 81.29, 325.82°) |
| OKLab | oklab(60.44% 0.1839 -0.1268) |
| OKLCH | oklch(60.44% 0.223 325.4) |
| XYZ | xyz(33.9962, 19.0455, 56.5179) |
| Luminance | 0.1904 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 3.30
Pinky Purple
#C94CBE
ΔE00 4.10
Mediumorchid
#BA55D3
ΔE00 4.12
Purple Pink
#D725DE
ΔE00 4.23
Pinkish Purple
#D648D7
ΔE00 5.19
Hot Purple
#CB00F5
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C040C8 #48C840
analogous
#7C40C8 #C040C8 #C8408C
triadic
#C040C8 #C8C040 #40C8C0
tetradic
#C040C8 #C87C40 #48C840 #408CC8
square
#C040C8 #C87C40 #48C840 #408CC8
split-complementary
#C040C8 #8CC840 #40C87C
monochromatic
#69206E #972D9D #C040C8 #D070D6 #DF9FE3
Accessibility & contrast
On white
4.37
#C040C8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.81
#C040C8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C040C8
4.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C040C8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C040C8 | 1.00 | 4.37 | 4.81 | 4.81 |
| #FFFFFF | 4.37 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#226FCC
Deuteranopia (green-blind)
#5C7EC5
Tritanopia (blue-blind)
#C4557F
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #c040c8; /* rgb */ color: rgb(192, 64, 200); /* oklch */ color: oklch(60.4% 0.223 325.4);
Tailwind
colors: {
custom: {
50: '#d77fd9',
500: '#c040c8',
950: '#000000',
},
}SCSS
$custom: #c040c8; $custom-light: #d77fd9; $custom-dark: #000000;
JSON
{
"hex": "#c040c8",
"rgb": {
"r": 192,
"g": 64,
"b": 200
},
"hsl": {
"h": 296.471,
"s": 55.285,
"l": 51.765
},
"oklch": {
"l": 0.6044,
"c": 0.22337,
"h": 325.4
},
"luminance": 0.19043
}Semantic roles & 50–950 ramp
primary
#C040C8
secondary
#98D094
accent
#DF4952
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B15
muted
#837C83