#5A172B#5A172B
#5A172B is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.2% C 0.099 H 6.6°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).
Color values
| HEX | #5A172B |
|---|---|
| RGB | rgb(90, 23, 43) |
| HSL | hsl(342, 59%, 22%) |
| HSV | hsv(342, 74%, 35%) |
| CMYK | cmyk(0%, 74.4%, 52.2%, 64.7%) |
| CIE-LAB | lab(19.89, 32.14, 4.32) |
| CIE-LCH | lch(19.89, 32.43, 7.65°) |
| OKLab | oklab(32.21% 0.098 0.0113) |
| OKLCH | oklch(32.21% 0.099 6.6) |
| XYZ | xyz(4.9593, 2.9615, 2.5955) |
| Luminance | 0.0296 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Burgundy (survey)
#610023
ΔE00 3.96
Maroon (survey)
#650021
ΔE00 5.03
Merlot
#730039
ΔE00 6.51
Bordeaux
#7B002C
ΔE00 7.46
Wine
#722F37
ΔE00 7.65
Claret
#680018
ΔE00 8.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A172B #175A46
analogous
#5A174C #5A172B #5A2517
triadic
#5A172B #2B5A17 #172B5A
tetradic
#5A172B #4C5A17 #175A46 #25175A
square
#5A172B #4C5A17 #175A46 #25175A
split-complementary
#5A172B #175A25 #174C5A
monochromatic
#18060C #290B14 #5A172B #8B2342 #BB305A
Accessibility & contrast
On white
13.19
#5A172B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#5A172B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A172B
13.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A172B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A172B | 1.00 | 13.19 | 1.59 | 13.19 |
| #FFFFFF | 13.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#26282B
Deuteranopia (green-blind)
#383529
Tritanopia (blue-blind)
#620C1F
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #5a172b; /* rgb */ color: rgb(90, 23, 43); /* oklch */ color: oklch(32.2% 0.099 6.6);
Tailwind
colors: {
custom: {
50: '#8d5a64',
500: '#5a172b',
950: '#000000',
},
}SCSS
$custom: #5a172b; $custom-light: #8d5a64; $custom-dark: #000000;
JSON
{
"hex": "#5a172b",
"rgb": {
"r": 90,
"g": 23,
"b": 43
},
"hsl": {
"h": 342.09,
"s": 59.292,
"l": 22.157
},
"oklch": {
"l": 0.32211,
"c": 0.09864,
"h": 6.6
},
"luminance": 0.02961
}Semantic roles & 50–950 ramp
primary
#5A172B
secondary
#3C9178
accent
#E2B445
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0405
muted
#7E7979