#842540#842540
#842540 is a dark, vivid pink. Relative luminance 0.066; OKLCH L 42.1% C 0.130 H 7.7°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).
Color values
| HEX | #842540 |
|---|---|
| RGB | rgb(132, 37, 64) |
| HSL | hsl(343, 56%, 33%) |
| HSV | hsv(343, 72%, 52%) |
| CMYK | cmyk(0%, 72%, 51.5%, 48.2%) |
| CIE-LAB | lab(30.88, 42.36, 6.72) |
| CIE-LCH | lch(30.88, 42.89, 9.02°) |
| OKLab | oklab(42.09% 0.129 0.0174) |
| OKLCH | oklch(42.09% 0.13 7.7) |
| XYZ | xyz(11.1036, 6.6003, 5.5388) |
| Luminance | 0.0660 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Red Wine
#8C0034
ΔE00 4.35
Purple Red
#990147
ΔE00 5.03
Berry
#990F4B
ΔE00 5.06
Wine (survey)
#80013F
ΔE00 5.27
Bordeaux
#7B002C
ΔE00 5.42
Wine
#722F37
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#842540 #258469
analogous
#84256F #842540 #843925
triadic
#842540 #408425 #254084
tetradic
#842540 #6F8425 #258469 #392584
square
#842540 #6F8425 #258469 #392584
split-complementary
#842540 #258439 #256F84
monochromatic
#240A12 #541829 #842540 #B43257 #CF5477
Accessibility & contrast
On white
9.05
#842540 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.32
#842540 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #842540
9.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##842540 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##842540 | 1.00 | 9.05 | 2.32 | 9.05 |
| #FFFFFF | 9.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3B3D41
Deuteranopia (green-blind)
#54503E
Tritanopia (blue-blind)
#901330
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #842540; /* rgb */ color: rgb(132, 37, 64); /* oklch */ color: oklch(42.1% 0.130 7.7);
Tailwind
colors: {
custom: {
50: '#ad6774',
500: '#842540',
950: '#000000',
},
}SCSS
$custom: #842540; $custom-light: #ad6774; $custom-dark: #000000;
JSON
{
"hex": "#842540",
"rgb": {
"r": 132,
"g": 37,
"b": 64
},
"hsl": {
"h": 342.947,
"s": 56.213,
"l": 33.137
},
"oklch": {
"l": 0.42087,
"c": 0.13014,
"h": 7.7
},
"luminance": 0.06599
}Semantic roles & 50–950 ramp
primary
#842540
secondary
#51B398
accent
#E0B548
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110608
muted
#807A7B