#C040C0#C040C0
#C040C0 is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 60.0% C 0.217 H 327.9°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).
Color values
| HEX | #C040C0 |
|---|---|
| RGB | rgb(192, 64, 192) |
| HSL | hsl(300, 50%, 50%) |
| HSV | hsv(300, 67%, 75%) |
| CMYK | cmyk(0%, 66.7%, 0%, 24.7%) |
| CIE-LAB | lab(50.31, 65.90, -41.72) |
| CIE-LCH | lch(50.31, 77.99, 327.66°) |
| OKLab | oklab(59.99% 0.1837 -0.1154) |
| OKLCH | oklch(59.99% 0.217 327.9) |
| XYZ | xyz(33.0856, 18.6813, 51.7222) |
| Luminance | 0.1868 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 2.16
Pinky Purple
#C94CBE
ΔE00 3.54
Mediumorchid
#BA55D3
ΔE00 5.00
Purple Pink
#D725DE
ΔE00 5.06
Pinkish Purple
#D648D7
ΔE00 5.68
Ugly Purple
#A442A0
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C040C0 #40C040
analogous
#8040C0 #C040C0 #C04080
triadic
#C040C0 #C0C040 #40C0C0
tetradic
#C040C0 #C08040 #40C040 #4080C0
square
#C040C0 #C08040 #40C040 #4080C0
split-complementary
#C040C0 #80C040 #40C080
monochromatic
#642164 #923092 #C040C0 #CF6ECF #DE9CDE
Accessibility & contrast
On white
4.43
#C040C0 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.74
#C040C0 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C040C0
4.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C040C0 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C040C0 | 1.00 | 4.43 | 4.74 | 4.74 |
| #FFFFFF | 4.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D6DC4
Deuteranopia (green-blind)
#607EBD
Tritanopia (blue-blind)
#C6527B
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #c040c0; /* rgb */ color: rgb(192, 64, 192); /* oklch */ color: oklch(60.0% 0.217 327.9);
Tailwind
colors: {
custom: {
50: '#d77fd3',
500: '#c040c0',
950: '#000000',
},
}SCSS
$custom: #c040c0; $custom-light: #d77fd3; $custom-dark: #000000;
JSON
{
"hex": "#c040c0",
"rgb": {
"r": 192,
"g": 64,
"b": 192
},
"hsl": {
"h": 300,
"s": 50.394,
"l": 50.196
},
"oklch": {
"l": 0.59994,
"c": 0.21694,
"h": 327.9
},
"luminance": 0.18679
}Semantic roles & 50–950 ramp
primary
#C040C0
secondary
#91CB91
accent
#DA4E4E
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83