#C040CC#C040CC
#C040CC is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.7% C 0.227 H 324.2°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).
Color values
| HEX | #C040CC |
|---|---|
| RGB | rgb(192, 64, 204) |
| HSL | hsl(295, 58%, 53%) |
| HSV | hsv(295, 69%, 80%) |
| CMYK | cmyk(5.9%, 68.6%, 0%, 20%) |
| CIE-LAB | lab(50.96, 67.94, -47.61) |
| CIE-LCH | lch(50.96, 82.96, 324.98°) |
| OKLab | oklab(60.67% 0.1838 -0.1325) |
| OKLCH | oklch(60.67% 0.227 324.2) |
| XYZ | xyz(34.4698, 19.2350, 59.0122) |
| Luminance | 0.1923 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 3.78
Purpley Pink
#C83CB9
ΔE00 3.90
Purple Pink
#D725DE
ΔE00 3.92
Pinky Purple
#C94CBE
ΔE00 4.48
Pinkish Purple
#D648D7
ΔE00 5.05
Hot Purple
#CB00F5
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C040CC #4CCC40
analogous
#7A40CC #C040CC #CC4092
triadic
#C040CC #CCC040 #40CCC0
tetradic
#C040CC #CC7A40 #4CCC40 #4092CC
square
#C040CC #CC7A40 #4CCC40 #4092CC
split-complementary
#C040CC #92CC40 #40CC7A
monochromatic
#6C1F73 #992CA3 #C040CC #D070D9 #E0A1E6
Accessibility & contrast
On white
4.33
#C040CC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.85
#C040CC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C040CC
4.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C040CC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C040CC | 1.00 | 4.33 | 4.85 | 4.85 |
| #FFFFFF | 4.33 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.85 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.85 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1A70D0
Deuteranopia (green-blind)
#597FC9
Tritanopia (blue-blind)
#C45782
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #c040cc; /* rgb */ color: rgb(192, 64, 204); /* oklch */ color: oklch(60.7% 0.227 324.2);
Tailwind
colors: {
custom: {
50: '#d780dc',
500: '#c040cc',
950: '#000000',
},
}SCSS
$custom: #c040cc; $custom-light: #d780dc; $custom-dark: #000000;
JSON
{
"hex": "#c040cc",
"rgb": {
"r": 192,
"g": 64,
"b": 204
},
"hsl": {
"h": 294.857,
"s": 57.851,
"l": 52.549
},
"oklch": {
"l": 0.6067,
"c": 0.22662,
"h": 324.2
},
"luminance": 0.19233
}Semantic roles & 50–950 ramp
primary
#C040CC
secondary
#9BD295
accent
#E14754
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83