#C842C2#C842C2
#C842C2 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.4% C 0.220 H 329.7°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).
Color values
| HEX | #C842C2 |
|---|---|
| RGB | rgb(200, 66, 194) |
| HSL | hsl(303, 55%, 52%) |
| HSV | hsv(303, 67%, 78%) |
| CMYK | cmyk(0%, 67%, 3%, 21.6%) |
| CIE-LAB | lab(51.92, 67.34, -40.26) |
| CIE-LCH | lch(51.92, 78.45, 329.13°) |
| OKLab | oklab(61.43% 0.1902 -0.111) |
| OKLCH | oklch(61.43% 0.22 329.7) |
| XYZ | xyz(35.5050, 20.0734, 53.0330) |
| Luminance | 0.2007 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 1.79
Pinky Purple
#C94CBE
ΔE00 2.03
Pinkish Purple
#D648D7
ΔE00 4.23
Purple Pink
#D725DE
ΔE00 4.53
Mediumorchid
#BA55D3
ΔE00 4.88
Purpleish Pink
#DF4EC8
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C842C2 #42C848
analogous
#8B42C8 #C842C2 #C8427F
triadic
#C842C2 #C2C842 #42C2C8
tetradic
#C842C2 #C88B42 #42C848 #427FC8
square
#C842C2 #C88B42 #42C848 #427FC8
split-complementary
#C842C2 #7FC842 #42C88B
monochromatic
#6F206C #9F2E9A #C842C2 #D671D1 #E4A1E1
Accessibility & contrast
On white
4.19
#C842C2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.01
#C842C2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C842C2
5.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C842C2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C842C2 | 1.00 | 4.19 | 5.01 | 5.01 |
| #FFFFFF | 4.19 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.01 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.01 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3470C6
Deuteranopia (green-blind)
#6782BF
Tritanopia (blue-blind)
#CF527D
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #c842c2; /* rgb */ color: rgb(200, 66, 194); /* oklch */ color: oklch(61.4% 0.220 329.7);
Tailwind
colors: {
custom: {
50: '#dc81d5',
500: '#c842c2',
950: '#000000',
},
}SCSS
$custom: #c842c2; $custom-light: #dc81d5; $custom-dark: #000000;
JSON
{
"hex": "#c842c2",
"rgb": {
"r": 200,
"g": 66,
"b": 194
},
"hsl": {
"h": 302.687,
"s": 54.918,
"l": 52.157
},
"oklch": {
"l": 0.6143,
"c": 0.22022,
"h": 329.7
},
"luminance": 0.20071
}Semantic roles & 50–950 ramp
primary
#C842C2
secondary
#96D098
accent
#DE504A
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#150B14
muted
#847C83