#C042CB#C042CB
#C042CB is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.8% C 0.223 H 324.5°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #C042CB |
|---|---|
| RGB | rgb(192, 66, 203) |
| HSL | hsl(295, 57%, 53%) |
| HSV | hsv(295, 67%, 80%) |
| CMYK | cmyk(5.4%, 67.5%, 0%, 20.4%) |
| CIE-LAB | lab(51.17, 67.02, -46.70) |
| CIE-LCH | lch(51.17, 81.68, 325.13°) |
| OKLab | oklab(60.8% 0.1818 -0.1299) |
| OKLCH | oklch(60.8% 0.223 324.5) |
| XYZ | xyz(34.4650, 19.4168, 58.4208) |
| Luminance | 0.1941 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 3.59
Purpley Pink
#C83CB9
ΔE00 3.74
Purple Pink
#D725DE
ΔE00 4.02
Pinky Purple
#C94CBE
ΔE00 4.17
Pinkish Purple
#D648D7
ΔE00 4.85
Hot Purple
#CB00F5
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C042CB #4DCB42
analogous
#7B42CB #C042CB #CB4292
triadic
#C042CB #CBC042 #42CBC0
tetradic
#C042CB #CB7B42 #4DCB42 #4292CB
square
#C042CB #CB7B42 #4DCB42 #4292CB
split-complementary
#C042CB #92CB42 #42CB7B
monochromatic
#6C2073 #992DA3 #C042CB #D072D8 #E0A2E5
Accessibility & contrast
On white
4.30
#C042CB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.88
#C042CB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C042CB
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C042CB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C042CB | 1.00 | 4.30 | 4.88 | 4.88 |
| #FFFFFF | 4.30 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2170CF
Deuteranopia (green-blind)
#5B7FC8
Tritanopia (blue-blind)
#C45882
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #c042cb; /* rgb */ color: rgb(192, 66, 203); /* oklch */ color: oklch(60.8% 0.223 324.5);
Tailwind
colors: {
custom: {
50: '#d781db',
500: '#c042cb',
950: '#000000',
},
}SCSS
$custom: #c042cb; $custom-light: #d781db; $custom-dark: #000000;
JSON
{
"hex": "#c042cb",
"rgb": {
"r": 192,
"g": 66,
"b": 203
},
"hsl": {
"h": 295.182,
"s": 56.846,
"l": 52.745
},
"oklch": {
"l": 0.60803,
"c": 0.22342,
"h": 324.5
},
"luminance": 0.19415
}Semantic roles & 50–950 ramp
primary
#C042CB
secondary
#9BD297
accent
#E04854
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83