#8A1F4C#8A1F4C
#8A1F4C is a dark, vivid pink. Relative luminance 0.069; OKLCH L 42.9% C 0.146 H 0.2°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).
Color values
| HEX | #8A1F4C |
|---|---|
| RGB | rgb(138, 31, 76) |
| HSL | hsl(335, 63%, 33%) |
| HSV | hsv(335, 78%, 54%) |
| CMYK | cmyk(0%, 77.5%, 44.9%, 45.9%) |
| CIE-LAB | lab(31.59, 47.60, -0.01) |
| CIE-LCH | lch(31.59, 47.60, 359.99°) |
| OKLab | oklab(42.94% 0.1461 0.0005) |
| OKLCH | oklch(42.94% 0.146 0.2) |
| XYZ | xyz(12.2767, 6.9067, 7.5227) |
| Luminance | 0.0691 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Mulberry
#920A4E
ΔE00 2.30
Reddish Purple
#910951
ΔE00 2.80
Berry
#990F4B
ΔE00 3.16
Red Purple
#820747
ΔE00 3.39
Purple Red
#990147
ΔE00 3.72
Wine (survey)
#80013F
ΔE00 3.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A1F4C #1F8A5D
analogous
#8A1F81 #8A1F4C #8A271F
triadic
#8A1F4C #4C8A1F #1F4C8A
tetradic
#8A1F4C #818A1F #1F8A5D #271F8A
square
#8A1F4C #818A1F #1F8A5D #271F8A
split-complementary
#8A1F4C #1F8A27 #1F818A
monochromatic
#260915 #581430 #8A1F4C #BC2A68 #D74C87
Accessibility & contrast
On white
8.82
#8A1F4C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.38
#8A1F4C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A1F4C
8.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A1F4C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A1F4C | 1.00 | 8.82 | 2.38 | 8.82 |
| #FFFFFF | 8.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#373D4D
Deuteranopia (green-blind)
#54524A
Tritanopia (blue-blind)
#960B33
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #8a1f4c; /* rgb */ color: rgb(138, 31, 76); /* oklch */ color: oklch(42.9% 0.146 0.2);
Tailwind
colors: {
custom: {
50: '#b1657d',
500: '#8a1f4c',
950: '#000000',
},
}SCSS
$custom: #8a1f4c; $custom-light: #b1657d; $custom-dark: #000000;
JSON
{
"hex": "#8a1f4c",
"rgb": {
"r": 138,
"g": 31,
"b": 76
},
"hsl": {
"h": 334.766,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.42943,
"c": 0.14614,
"h": 0.2
},
"luminance": 0.06905
}Semantic roles & 50–950 ramp
primary
#8A1F4C
secondary
#4BBA8B
accent
#E6A141
background
#FBF6F7
surface
#F6EBEE
border
#D0C6C9
text
#110609
muted
#807A7B