#C842B1#C842B1
#C842B1 is a mid, highly saturated pink. Relative luminance 0.194; OKLCH L 60.6% C 0.208 H 335.4°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #C842B1 |
|---|---|
| RGB | rgb(200, 66, 177) |
| HSL | hsl(310, 55%, 52%) |
| HSV | hsv(310, 67%, 78%) |
| CMYK | cmyk(0%, 67%, 11.5%, 21.6%) |
| CIE-LAB | lab(51.10, 64.69, -31.67) |
| CIE-LCH | lch(51.10, 72.02, 333.92°) |
| OKLab | oklab(60.57% 0.1888 -0.0863) |
| OKLCH | oklch(60.57% 0.208 335.4) |
| XYZ | xyz(33.7038, 19.3530, 43.5469) |
| Luminance | 0.1935 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 1.82
Pinky Purple
#C94CBE
ΔE00 2.83
Purpleish Pink
#DF4EC8
ΔE00 6.16
Purplish Pink
#CE5DAE
ΔE00 6.21
Pinkish Purple
#D648D7
ΔE00 6.54
Hot Magenta
#F504C9
ΔE00 7.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C842B1 #42C859
analogous
#9C42C8 #C842B1 #C8426E
triadic
#C842B1 #B1C842 #42B1C8
tetradic
#C842B1 #C89C42 #42C859 #426EC8
square
#C842B1 #C89C42 #42C859 #426EC8
split-complementary
#C842B1 #6EC842 #42C89C
monochromatic
#6F2062 #9F2E8B #C842B1 #D671C5 #E4A1D8
Accessibility & contrast
On white
4.31
#C842B1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.87
#C842B1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C842B1
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C842B1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C842B1 | 1.00 | 4.31 | 4.87 | 4.87 |
| #FFFFFF | 4.31 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.87 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.87 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#426DB4
Deuteranopia (green-blind)
#6F81AE
Tritanopia (blue-blind)
#D24B74
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #c842b1; /* rgb */ color: rgb(200, 66, 177); /* oklch */ color: oklch(60.6% 0.208 335.4);
Tailwind
colors: {
custom: {
50: '#dc81c8',
500: '#c842b1',
950: '#000000',
},
}SCSS
$custom: #c842b1; $custom-light: #dc81c8; $custom-dark: #000000;
JSON
{
"hex": "#c842b1",
"rgb": {
"r": 200,
"g": 66,
"b": 177
},
"hsl": {
"h": 310.299,
"s": 54.918,
"l": 52.157
},
"oklch": {
"l": 0.60567,
"c": 0.20754,
"h": 335.4
},
"luminance": 0.1935
}Semantic roles & 50–950 ramp
primary
#C842B1
secondary
#96D0A0
accent
#DE634A
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#150B13
muted
#847C82