#C842C0#C842C0
#C842C0 is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.3% C 0.219 H 330.4°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).
Color values
| HEX | #C842C0 |
|---|---|
| RGB | rgb(200, 66, 192) |
| HSL | hsl(304, 55%, 52%) |
| HSV | hsv(304, 67%, 78%) |
| CMYK | cmyk(0%, 67%, 4%, 21.6%) |
| CIE-LAB | lab(51.82, 67.02, -39.26) |
| CIE-LCH | lch(51.82, 77.67, 329.64°) |
| OKLab | oklab(61.33% 0.1901 -0.1081) |
| OKLCH | oklch(61.33% 0.219 330.4) |
| XYZ | xyz(35.2819, 19.9842, 51.8580) |
| Luminance | 0.1998 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 1.50
Pinky Purple
#C94CBE
ΔE00 1.91
Pinkish Purple
#D648D7
ΔE00 4.45
Purple Pink
#D725DE
ΔE00 4.81
Mediumorchid
#BA55D3
ΔE00 5.15
Purpleish Pink
#DF4EC8
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C842C0 #42C84A
analogous
#8D42C8 #C842C0 #C8427D
triadic
#C842C0 #C0C842 #42C0C8
tetradic
#C842C0 #C88D42 #42C84A #427DC8
square
#C842C0 #C88D42 #42C84A #427DC8
split-complementary
#C842C0 #7DC842 #42C88D
monochromatic
#6F206B #9F2E98 #C842C0 #D671D0 #E4A1E0
Accessibility & contrast
On white
4.20
#C842C0 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.00
#C842C0 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C842C0
5.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C842C0 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C842C0 | 1.00 | 4.20 | 5.00 | 5.00 |
| #FFFFFF | 4.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.00 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.00 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3670C4
Deuteranopia (green-blind)
#6882BD
Tritanopia (blue-blind)
#CF517C
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #c842c0; /* rgb */ color: rgb(200, 66, 192); /* oklch */ color: oklch(61.3% 0.219 330.4);
Tailwind
colors: {
custom: {
50: '#dc81d3',
500: '#c842c0',
950: '#000000',
},
}SCSS
$custom: #c842c0; $custom-light: #dc81d3; $custom-dark: #000000;
JSON
{
"hex": "#c842c0",
"rgb": {
"r": 200,
"g": 66,
"b": 192
},
"hsl": {
"h": 303.582,
"s": 54.918,
"l": 52.157
},
"oklch": {
"l": 0.61325,
"c": 0.21868,
"h": 330.4
},
"luminance": 0.19982
}Semantic roles & 50–950 ramp
primary
#C842C0
secondary
#96D099
accent
#DE524A
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#150B14
muted
#847C83