#C842AF#C842AF
#C842AF is a mid, highly saturated pink. Relative luminance 0.193; OKLCH L 60.5% C 0.206 H 336.1°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).
Color values
| HEX | #C842AF |
|---|---|
| RGB | rgb(200, 66, 175) |
| HSL | hsl(311, 55%, 52%) |
| HSV | hsv(311, 67%, 78%) |
| CMYK | cmyk(0%, 67%, 12.5%, 21.6%) |
| CIE-LAB | lab(51.01, 64.39, -30.64) |
| CIE-LCH | lch(51.01, 71.31, 334.55°) |
| OKLab | oklab(60.47% 0.1885 -0.0834) |
| OKLCH | oklch(60.47% 0.206 336.1) |
| XYZ | xyz(33.5059, 19.2738, 42.5047) |
| Luminance | 0.1927 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 2.15
Pinky Purple
#C94CBE
ΔE00 3.12
Purplish Pink
#CE5DAE
ΔE00 6.10
Purpleish Pink
#DF4EC8
ΔE00 6.31
Pinkish Purple
#D648D7
ΔE00 6.86
Hot Magenta
#F504C9
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C842AF #42C85B
analogous
#9E42C8 #C842AF #C8426C
triadic
#C842AF #AFC842 #42AFC8
tetradic
#C842AF #C89E42 #42C85B #426CC8
square
#C842AF #C89E42 #42C85B #426CC8
split-complementary
#C842AF #6CC842 #42C89E
monochromatic
#6F2061 #9F2E8A #C842AF #D671C3 #E4A1D7
Accessibility & contrast
On white
4.33
#C842AF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.85
#C842AF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C842AF
4.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C842AF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C842AF | 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)
#446DB2
Deuteranopia (green-blind)
#7081AC
Tritanopia (blue-blind)
#D24A73
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #c842af; /* rgb */ color: rgb(200, 66, 175); /* oklch */ color: oklch(60.5% 0.206 336.1);
Tailwind
colors: {
custom: {
50: '#dc81c7',
500: '#c842af',
950: '#000000',
},
}SCSS
$custom: #c842af; $custom-light: #dc81c7; $custom-dark: #000000;
JSON
{
"hex": "#c842af",
"rgb": {
"r": 200,
"g": 66,
"b": 175
},
"hsl": {
"h": 311.194,
"s": 54.918,
"l": 52.157
},
"oklch": {
"l": 0.60471,
"c": 0.20611,
"h": 336.1
},
"luminance": 0.19271
}Semantic roles & 50–950 ramp
primary
#C842AF
secondary
#96D0A1
accent
#DE654A
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#150B13
muted
#847C82