#C042CF#C042CF
#C042CF is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 61.0% C 0.227 H 323.3°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).
Color values
| HEX | #C042CF |
|---|---|
| RGB | rgb(192, 66, 207) |
| HSL | hsl(294, 59%, 54%) |
| HSV | hsv(294, 68%, 81%) |
| CMYK | cmyk(7.2%, 68.1%, 0%, 18.8%) |
| CIE-LAB | lab(51.39, 67.72, -48.65) |
| CIE-LCH | lch(51.39, 83.38, 324.31°) |
| OKLab | oklab(61.03% 0.1818 -0.1355) |
| OKLCH | oklch(61.03% 0.227 323.3) |
| XYZ | xyz(34.9479, 19.6099, 60.9637) |
| Luminance | 0.1961 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 3.31
Purple Pink
#D725DE
ΔE00 3.78
Purpley Pink
#C83CB9
ΔE00 4.35
Pinky Purple
#C94CBE
ΔE00 4.62
Pinkish Purple
#D648D7
ΔE00 4.77
Hot Purple
#CB00F5
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C042CF #51CF42
analogous
#7942CF #C042CF #CF4297
triadic
#C042CF #CFC042 #42CFC0
tetradic
#C042CF #CF7942 #51CF42 #4297CF
square
#C042CF #CF7942 #51CF42 #4297CF
split-complementary
#C042CF #97CF42 #42CF79
monochromatic
#6F1F78 #9B2BA9 #C042CF #D073DB #E1A4E8
Accessibility & contrast
On white
4.27
#C042CF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.92
#C042CF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C042CF
4.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C042CF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C042CF | 1.00 | 4.27 | 4.92 | 4.92 |
| #FFFFFF | 4.27 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.92 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.92 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1971D3
Deuteranopia (green-blind)
#587FCC
Tritanopia (blue-blind)
#C35A84
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #c042cf; /* rgb */ color: rgb(192, 66, 207); /* oklch */ color: oklch(61.0% 0.227 323.3);
Tailwind
colors: {
custom: {
50: '#d781de',
500: '#c042cf',
950: '#000000',
},
}SCSS
$custom: #c042cf; $custom-light: #d781de; $custom-dark: #000000;
JSON
{
"hex": "#c042cf",
"rgb": {
"r": 192,
"g": 66,
"b": 207
},
"hsl": {
"h": 293.617,
"s": 59.494,
"l": 53.529
},
"oklch": {
"l": 0.61034,
"c": 0.22673,
"h": 323.3
},
"luminance": 0.19608
}Semantic roles & 50–950 ramp
primary
#C042CF
secondary
#9FD598
accent
#E34556
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83