#C842E2#C842E2
#C842E2 is a light, highly saturated purple. Relative luminance 0.217; OKLCH L 63.3% C 0.246 H 320.6°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).
Color values
| HEX | #C842E2 |
|---|---|
| RGB | rgb(200, 66, 226) |
| HSL | hsl(290, 73%, 57%) |
| HSV | hsv(290, 71%, 89%) |
| CMYK | cmyk(11.5%, 70.8%, 0%, 11.4%) |
| CIE-LAB | lab(53.67, 72.79, -55.74) |
| CIE-LCH | lch(53.67, 91.68, 322.55°) |
| OKLab | oklab(63.25% 0.1901 -0.156) |
| OKLCH | oklch(63.25% 0.246 320.6) |
| XYZ | xyz(39.4935, 21.6688, 74.0390) |
| Luminance | 0.2167 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purple Pink
#D725DE
ΔE00 3.07
Mediumorchid
#BA55D3
ΔE00 3.42
Pinkish Purple
#D648D7
ΔE00 3.93
Hot Purple
#CB00F5
ΔE00 4.78
Heliotrope
#D94FF5
ΔE00 4.91
Pink Purple
#EF1DE7
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C842E2 #5CE242
analogous
#7842E2 #C842E2 #E242AC
triadic
#C842E2 #E2C842 #42E2C8
tetradic
#C842E2 #E27842 #5CE242 #42ACE2
square
#C842E2 #E27842 #5CE242 #42ACE2
split-complementary
#C842E2 #ACE242 #42E278
monochromatic
#7F1793 #AD1FC8 #C842E2 #D777EA #E7ACF2
Accessibility & contrast
On white
3.94
#C842E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.33
#C842E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C842E2
5.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C842E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C842E2 | 1.00 | 3.94 | 5.33 | 5.33 |
| #FFFFFF | 3.94 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.33 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.33 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0077E7
Deuteranopia (green-blind)
#5385DE
Tritanopia (blue-blind)
#C9608E
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #c842e2; /* rgb */ color: rgb(200, 66, 226); /* oklch */ color: oklch(63.3% 0.246 320.6);
Tailwind
colors: {
custom: {
50: '#dd82ec',
500: '#c842e2',
950: '#000000',
},
}SCSS
$custom: #c842e2; $custom-light: #dd82ec; $custom-dark: #000000;
JSON
{
"hex": "#c842e2",
"rgb": {
"r": 200,
"g": 66,
"b": 226
},
"hsl": {
"h": 290.25,
"s": 73.394,
"l": 57.255
},
"oklch": {
"l": 0.63254,
"c": 0.24591,
"h": 320.6
},
"luminance": 0.21667
}Semantic roles & 50–950 ramp
primary
#C842E2
secondary
#AAE09F
accent
#F03856
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160B16
muted
#847C84