#8A1F42#8A1F42
#8A1F42 is a dark, vivid pink. Relative luminance 0.068; OKLCH L 42.6% C 0.143 H 6.4°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).
Color values
| HEX | #8A1F42 |
|---|---|
| RGB | rgb(138, 31, 66) |
| HSL | hsl(340, 63%, 33%) |
| HSV | hsv(340, 78%, 54%) |
| CMYK | cmyk(0%, 77.5%, 52.2%, 45.9%) |
| CIE-LAB | lab(31.30, 46.66, 6.16) |
| CIE-LCH | lch(31.30, 47.06, 7.52°) |
| OKLab | oklab(42.63% 0.1424 0.016) |
| OKLCH | oklch(42.63% 0.143 6.4) |
| XYZ | xyz(11.9556, 6.7782, 5.8320) |
| Luminance | 0.0678 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purple Red
#990147
ΔE00 3.48
Berry
#990F4B
ΔE00 3.55
Red Wine
#8C0034
ΔE00 3.91
Wine (survey)
#80013F
ΔE00 4.62
Mulberry
#920A4E
ΔE00 4.63
Cranberry
#9E003A
ΔE00 5.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A1F42 #1F8A67
analogous
#8A1F77 #8A1F42 #8A311F
triadic
#8A1F42 #428A1F #1F428A
tetradic
#8A1F42 #778A1F #1F8A67 #311F8A
square
#8A1F42 #778A1F #1F8A67 #311F8A
split-complementary
#8A1F42 #1F8A31 #1F778A
monochromatic
#260912 #58142A #8A1F42 #BC2A5A #D74C7A
Accessibility & contrast
On white
8.92
#8A1F42 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#8A1F42 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A1F42
8.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A1F42 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A1F42 | 1.00 | 8.92 | 2.36 | 8.92 |
| #FFFFFF | 8.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3A3C43
Deuteranopia (green-blind)
#56513F
Tritanopia (blue-blind)
#97032E
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #8a1f42; /* rgb */ color: rgb(138, 31, 66); /* oklch */ color: oklch(42.6% 0.143 6.4);
Tailwind
colors: {
custom: {
50: '#b26576',
500: '#8a1f42',
950: '#000000',
},
}SCSS
$custom: #8a1f42; $custom-light: #b26576; $custom-dark: #000000;
JSON
{
"hex": "#8a1f42",
"rgb": {
"r": 138,
"g": 31,
"b": 66
},
"hsl": {
"h": 340.374,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.42628,
"c": 0.14331,
"h": 6.4
},
"luminance": 0.06777
}Semantic roles & 50–950 ramp
primary
#8A1F42
secondary
#4BBA95
accent
#E6B041
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#120608
muted
#817A7B