#C040B2#C040B2
#C040B2 is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.3% C 0.206 H 332.5°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).
Color values
| HEX | #C040B2 |
|---|---|
| RGB | rgb(192, 64, 178) |
| HSL | hsl(307, 50%, 50%) |
| HSV | hsv(307, 67%, 75%) |
| CMYK | cmyk(0%, 66.7%, 7.3%, 24.7%) |
| CIE-LAB | lab(49.61, 63.63, -34.68) |
| CIE-LCH | lch(49.61, 72.47, 331.41°) |
| OKLab | oklab(59.25% 0.1828 -0.0951) |
| OKLCH | oklch(59.25% 0.206 332.5) |
| XYZ | xyz(31.6076, 18.0901, 43.9379) |
| Luminance | 0.1809 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 1.59
Pinky Purple
#C94CBE
ΔE00 3.69
Ugly Purple
#A442A0
ΔE00 5.67
Medium Purple
#9E43A2
ΔE00 6.64
Mediumorchid
#BA55D3
ΔE00 7.00
Purple Pink
#D725DE
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C040B2 #40C04E
analogous
#8E40C0 #C040B2 #C04072
triadic
#C040B2 #B2C040 #40B2C0
tetradic
#C040B2 #C08E40 #40C04E #4072C0
square
#C040B2 #C08E40 #40C04E #4072C0
split-complementary
#C040B2 #72C040 #40C08E
monochromatic
#64215D #923088 #C040B2 #CF6EC5 #DE9CD7
Accessibility & contrast
On white
4.55
#C040B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.62
#C040B2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C040B2
4.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C040B2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C040B2 | 1.00 | 4.55 | 4.62 | 4.62 |
| #FFFFFF | 4.55 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.62 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.62 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3B6AB5
Deuteranopia (green-blind)
#677CAF
Tritanopia (blue-blind)
#C84C74
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #c040b2; /* rgb */ color: rgb(192, 64, 178); /* oklch */ color: oklch(59.3% 0.206 332.5);
Tailwind
colors: {
custom: {
50: '#d67fc9',
500: '#c040b2',
950: '#000000',
},
}SCSS
$custom: #c040b2; $custom-light: #d67fc9; $custom-dark: #000000;
JSON
{
"hex": "#c040b2",
"rgb": {
"r": 192,
"g": 64,
"b": 178
},
"hsl": {
"h": 306.563,
"s": 50.394,
"l": 50.196
},
"oklch": {
"l": 0.59253,
"c": 0.20607,
"h": 332.5
},
"luminance": 0.18088
}Semantic roles & 50–950 ramp
primary
#C040B2
secondary
#91CB98
accent
#DA5D4E
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82