#51172A#51172A
#51172A is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.5% C 0.088 H 3.8°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).
Color values
| HEX | #51172A |
|---|---|
| RGB | rgb(81, 23, 42) |
| HSL | hsl(340, 56%, 20%) |
| HSV | hsv(340, 72%, 32%) |
| CMYK | cmyk(0%, 71.6%, 48.1%, 68.2%) |
| CIE-LAB | lab(18.05, 28.83, 2.16) |
| CIE-LCH | lch(18.05, 28.91, 4.29°) |
| OKLab | oklab(30.5% 0.0881 0.0059) |
| OKLCH | oklch(30.5% 0.088 3.8) |
| XYZ | xyz(4.1180, 2.5298, 2.4615) |
| Luminance | 0.0253 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Burgundy (survey)
#610023
ΔE00 5.72
Maroon (survey)
#650021
ΔE00 6.95
Merlot
#730039
ΔE00 7.89
Dark Maroon
#3C0008
ΔE00 8.12
Plum (survey)
#580F41
ΔE00 8.60
Dark Plum
#3F012C
ΔE00 8.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51172A #17513E
analogous
#511747 #51172A #512117
triadic
#51172A #2A5117 #172A51
tetradic
#51172A #475117 #17513E #211751
square
#51172A #475117 #17513E #211751
split-complementary
#51172A #175121 #174751
monochromatic
#18070C #210911 #51172A #812543 #B0325B
Accessibility & contrast
On white
13.95
#51172A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#51172A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51172A
13.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51172A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51172A | 1.00 | 13.95 | 1.51 | 13.95 |
| #FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#23252A
Deuteranopia (green-blind)
#323029
Tritanopia (blue-blind)
#580F1F
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #51172a; /* rgb */ color: rgb(81, 23, 42); /* oklch */ color: oklch(30.5% 0.088 3.8);
Tailwind
colors: {
custom: {
50: '#855863',
500: '#51172a',
950: '#000000',
},
}SCSS
$custom: #51172a; $custom-light: #855863; $custom-dark: #000000;
JSON
{
"hex": "#51172a",
"rgb": {
"r": 81,
"g": 23,
"b": 42
},
"hsl": {
"h": 340.345,
"s": 55.769,
"l": 20.392
},
"oklch": {
"l": 0.30499,
"c": 0.08825,
"h": 3.8
},
"luminance": 0.02529
}Semantic roles & 50–950 ramp
primary
#51172A
secondary
#3C886F
accent
#DFAE49
background
#F8F5F5
surface
#F0E9EA
border
#CBC5C6
text
#0B0305
muted
#7C7879