#C840A2#C840A2
#C840A2 is a mid, vivid pink. Relative luminance 0.186; OKLCH L 59.7% C 0.200 H 340.9°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #C840A2 |
|---|---|
| RGB | rgb(200, 64, 162) |
| HSL | hsl(317, 55%, 52%) |
| HSV | hsv(317, 68%, 78%) |
| CMYK | cmyk(0%, 68%, 19%, 21.6%) |
| CIE-LAB | lab(50.17, 63.27, -24.30) |
| CIE-LCH | lch(50.17, 67.78, 338.99°) |
| OKLab | oklab(59.67% 0.1888 -0.0653) |
| OKLCH | oklch(59.67% 0.2 340.9) |
| XYZ | xyz(32.1753, 18.5578, 36.0629) |
| Luminance | 0.1855 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 4.46
Pinky Purple
#C94CBE
ΔE00 5.43
Purplish Pink
#CE5DAE
ΔE00 6.26
Mediumvioletred
#C71585
ΔE00 6.95
Ugly Purple
#A442A0
ΔE00 7.53
Purpleish Pink
#DF4EC8
ΔE00 7.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C840A2 #40C866
analogous
#AA40C8 #C840A2 #C8405E
triadic
#C840A2 #A2C840 #40A2C8
tetradic
#C840A2 #C8AA40 #40C866 #405EC8
square
#C840A2 #C8AA40 #40C866 #405EC8
split-complementary
#C840A2 #5EC840 #40C8AA
monochromatic
#6E2058 #9D2D7E #C840A2 #D670B9 #E39FD0
Accessibility & contrast
On white
4.46
#C840A2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.71
#C840A2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C840A2
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C840A2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C840A2 | 1.00 | 4.46 | 4.71 | 4.71 |
| #FFFFFF | 4.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4A69A5
Deuteranopia (green-blind)
#747F9F
Tritanopia (blue-blind)
#D4436B
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #c840a2; /* rgb */ color: rgb(200, 64, 162); /* oklch */ color: oklch(59.7% 0.200 340.9);
Tailwind
colors: {
custom: {
50: '#dc7fbd',
500: '#c840a2',
950: '#000000',
},
}SCSS
$custom: #c840a2; $custom-light: #dc7fbd; $custom-dark: #000000;
JSON
{
"hex": "#c840a2",
"rgb": {
"r": 200,
"g": 64,
"b": 162
},
"hsl": {
"h": 316.765,
"s": 55.285,
"l": 51.765
},
"oklch": {
"l": 0.59673,
"c": 0.19978,
"h": 340.9
},
"luminance": 0.18555
}Semantic roles & 50–950 ramp
primary
#C840A2
secondary
#94D0A5
accent
#DF7349
background
#FEF8FB
surface
#FCEFF6
border
#D5CAD0
text
#160B12
muted
#847C81