#C040A6#C040A6
#C040A6 is a mid, vivid pink. Relative luminance 0.176; OKLCH L 58.7% C 0.197 H 336.9°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).
Color values
| HEX | #C040A6 |
|---|---|
| RGB | rgb(192, 64, 166) |
| HSL | hsl(312, 50%, 50%) |
| HSV | hsv(312, 67%, 75%) |
| CMYK | cmyk(0%, 66.7%, 13.5%, 24.7%) |
| CIE-LAB | lab(49.04, 61.79, -28.50) |
| CIE-LCH | lch(49.04, 68.04, 335.23°) |
| OKLab | oklab(58.66% 0.1815 -0.0774) |
| OKLCH | oklch(58.66% 0.197 336.9) |
| XYZ | xyz(30.4550, 17.6291, 37.8678) |
| Luminance | 0.1763 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 3.37
Pinky Purple
#C94CBE
ΔE00 5.01
Ugly Purple
#A442A0
ΔE00 5.58
Medium Purple
#9E43A2
ΔE00 6.87
Purplish Pink
#CE5DAE
ΔE00 7.44
Mediumvioletred
#C71585
ΔE00 7.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C040A6 #40C05A
analogous
#9A40C0 #C040A6 #C04066
triadic
#C040A6 #A6C040 #40A6C0
tetradic
#C040A6 #C09A40 #40C05A #4066C0
square
#C040A6 #C09A40 #40C05A #4066C0
split-complementary
#C040A6 #66C040 #40C09A
monochromatic
#642157 #92307F #C040A6 #CF6EBB #DE9CD1
Accessibility & contrast
On white
4.64
#C040A6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.53
#C040A6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #C040A6
4.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C040A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##C040A6 | 1.00 | 4.64 | 4.53 | 4.64 |
| #FFFFFF | 4.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4368A9
Deuteranopia (green-blind)
#6C7CA3
Tritanopia (blue-blind)
#CA476D
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #c040a6; /* rgb */ color: rgb(192, 64, 166); /* oklch */ color: oklch(58.7% 0.197 336.9);
Tailwind
colors: {
custom: {
50: '#d67ec0',
500: '#c040a6',
950: '#000000',
},
}SCSS
$custom: #c040a6; $custom-light: #d67ec0; $custom-dark: #000000;
JSON
{
"hex": "#c040a6",
"rgb": {
"r": 192,
"g": 64,
"b": 166
},
"hsl": {
"h": 312.188,
"s": 50.394,
"l": 50.196
},
"oklch": {
"l": 0.58662,
"c": 0.19726,
"h": 336.9
},
"luminance": 0.17626
}Semantic roles & 50–950 ramp
primary
#C040A6
secondary
#91CB9D
accent
#DA6A4E
background
#FDF8FB
surface
#FBEFF7
border
#D4CAD0
text
#150B12
muted
#837C81