#842040#842040
#842040 is a dark, vivid pink. Relative luminance 0.063; OKLCH L 41.6% C 0.136 H 6.3°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).
Color values
| HEX | #842040 |
|---|---|
| RGB | rgb(132, 32, 64) |
| HSL | hsl(341, 61%, 32%) |
| HSV | hsv(341, 76%, 52%) |
| CMYK | cmyk(0%, 75.8%, 51.5%, 48.2%) |
| CIE-LAB | lab(30.18, 44.30, 5.74) |
| CIE-LCH | lch(30.18, 44.67, 7.38°) |
| OKLab | oklab(41.57% 0.1352 0.015) |
| OKLCH | oklch(41.57% 0.136 6.3) |
| XYZ | xyz(10.9586, 6.3102, 5.4904) |
| Luminance | 0.0631 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Red Wine
#8C0034
ΔE00 4.14
Wine (survey)
#80013F
ΔE00 4.21
Purple Red
#990147
ΔE00 4.43
Berry
#990F4B
ΔE00 4.51
Mulberry
#920A4E
ΔE00 5.09
Bordeaux
#7B002C
ΔE00 5.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#842040 #208464
analogous
#842072 #842040 #843220
triadic
#842040 #408420 #204084
tetradic
#842040 #728420 #208464 #322084
square
#842040 #728420 #208464 #322084
split-complementary
#842040 #208432 #207284
monochromatic
#210810 #531428 #842040 #B52C58 #D34B77
Accessibility & contrast
On white
9.28
#842040 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#842040 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #842040
9.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##842040 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##842040 | 1.00 | 9.28 | 2.26 | 9.28 |
| #FFFFFF | 9.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#383A41
Deuteranopia (green-blind)
#534E3E
Tritanopia (blue-blind)
#900A2D
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #842040; /* rgb */ color: rgb(132, 32, 64); /* oklch */ color: oklch(41.6% 0.136 6.3);
Tailwind
colors: {
custom: {
50: '#ad6574',
500: '#842040',
950: '#000000',
},
}SCSS
$custom: #842040; $custom-light: #ad6574; $custom-dark: #000000;
JSON
{
"hex": "#842040",
"rgb": {
"r": 132,
"g": 32,
"b": 64
},
"hsl": {
"h": 340.8,
"s": 60.976,
"l": 32.157
},
"oklch": {
"l": 0.41571,
"c": 0.13601,
"h": 6.3
},
"luminance": 0.06309
}Semantic roles & 50–950 ramp
primary
#842040
secondary
#4AB693
accent
#E4B144
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110608
muted
#807A7B