#C842A1#C842A1
#C842A1 is a mid, vivid pink. Relative luminance 0.187; OKLCH L 59.8% C 0.197 H 341.4°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).
Color values
| HEX | #C842A1 |
|---|---|
| RGB | rgb(200, 66, 161) |
| HSL | hsl(317, 55%, 52%) |
| HSV | hsv(317, 67%, 78%) |
| CMYK | cmyk(0%, 67%, 19.5%, 21.6%) |
| CIE-LAB | lab(50.40, 62.38, -23.35) |
| CIE-LCH | lch(50.40, 66.60, 339.48°) |
| OKLab | oklab(59.83% 0.1863 -0.0627) |
| OKLCH | oklch(59.83% 0.197 341.4) |
| XYZ | xyz(32.2016, 18.7521, 35.6349) |
| Luminance | 0.1875 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 4.78
Pinky Purple
#C94CBE
ΔE00 5.55
Purplish Pink
#CE5DAE
ΔE00 5.97
Mediumvioletred
#C71585
ΔE00 7.03
Ugly Purple
#A442A0
ΔE00 7.78
Purpleish Pink
#DF4EC8
ΔE00 7.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C842A1 #42C869
analogous
#AC42C8 #C842A1 #C8425E
triadic
#C842A1 #A1C842 #42A1C8
tetradic
#C842A1 #C8AC42 #42C869 #425EC8
square
#C842A1 #C8AC42 #42C869 #425EC8
split-complementary
#C842A1 #5EC842 #42C8AC
monochromatic
#6F2058 #9F2E7E #C842A1 #D671B9 #E4A1D0
Accessibility & contrast
On white
4.42
#C842A1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.75
#C842A1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C842A1
4.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C842A1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C842A1 | 1.00 | 4.42 | 4.75 | 4.75 |
| #FFFFFF | 4.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4C6AA4
Deuteranopia (green-blind)
#75809E
Tritanopia (blue-blind)
#D4446C
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #c842a1; /* rgb */ color: rgb(200, 66, 161); /* oklch */ color: oklch(59.8% 0.197 341.4);
Tailwind
colors: {
custom: {
50: '#dc80bd',
500: '#c842a1',
950: '#000000',
},
}SCSS
$custom: #c842a1; $custom-light: #dc80bd; $custom-dark: #000000;
JSON
{
"hex": "#c842a1",
"rgb": {
"r": 200,
"g": 66,
"b": 161
},
"hsl": {
"h": 317.463,
"s": 54.918,
"l": 52.157
},
"oklch": {
"l": 0.59827,
"c": 0.19659,
"h": 341.4
},
"luminance": 0.18749
}Semantic roles & 50–950 ramp
primary
#C842A1
secondary
#96D0A7
accent
#DE754A
background
#FEF8FB
surface
#FCEFF6
border
#D5CAD0
text
#160B12
muted
#847C81