#8A1240#8A1240
#8A1240 is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.6% C 0.154 H 5.4°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).
Color values
| HEX | #8A1240 |
|---|---|
| RGB | rgb(138, 18, 64) |
| HSL | hsl(337, 77%, 31%) |
| HSV | hsv(337, 87%, 54%) |
| CMYK | cmyk(0%, 87%, 53.6%, 45.9%) |
| CIE-LAB | lab(29.93, 50.21, 5.55) |
| CIE-LCH | lch(29.93, 50.52, 6.31°) |
| OKLab | oklab(41.61% 0.1537 0.0145) |
| OKLCH | oklch(41.61% 0.154 5.4) |
| XYZ | xyz(11.6241, 6.2077, 5.4356) |
| Luminance | 0.0621 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purple Red
#990147
ΔE00 2.90
Berry
#990F4B
ΔE00 3.28
Wine (survey)
#80013F
ΔE00 3.33
Red Wine
#8C0034
ΔE00 3.55
Mulberry
#920A4E
ΔE00 3.91
Red Purple
#820747
ΔE00 4.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A1240 #128A5C
analogous
#8A127C #8A1240 #8A2012
triadic
#8A1240 #408A12 #12408A
tetradic
#8A1240 #7C8A12 #128A5C #20128A
square
#8A1240 #7C8A12 #128A5C #20128A
split-complementary
#8A1240 #128A20 #127C8A
monochromatic
#1E040E #540B27 #8A1240 #C01959 #E43276
Accessibility & contrast
On white
9.37
#8A1240 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#8A1240 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A1240
9.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A1240 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A1240 | 1.00 | 9.37 | 2.24 | 9.37 |
| #FFFFFF | 9.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#343841
Deuteranopia (green-blind)
#534F3D
Tritanopia (blue-blind)
#970028
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #8a1240; /* rgb */ color: rgb(138, 18, 64); /* oklch */ color: oklch(41.6% 0.154 5.4);
Tailwind
colors: {
custom: {
50: '#b26174',
500: '#8a1240',
950: '#000000',
},
}SCSS
$custom: #8a1240; $custom-light: #b26174; $custom-dark: #000000;
JSON
{
"hex": "#8a1240",
"rgb": {
"r": 138,
"g": 18,
"b": 64
},
"hsl": {
"h": 337,
"s": 76.923,
"l": 30.588
},
"oklch": {
"l": 0.41606,
"c": 0.15433,
"h": 5.4
},
"luminance": 0.06206
}Semantic roles & 50–950 ramp
primary
#8A1240
secondary
#39BF8B
accent
#F3AA34
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#120608
muted
#817A7B