#51172C#51172C
#51172C is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.6% C 0.089 H 1.6°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).
Color values
| HEX | #51172C |
|---|---|
| RGB | rgb(81, 23, 44) |
| HSL | hsl(338, 56%, 20%) |
| HSV | hsv(338, 72%, 32%) |
| CMYK | cmyk(0%, 71.6%, 45.7%, 68.2%) |
| CIE-LAB | lab(18.12, 29.07, 0.83) |
| CIE-LCH | lch(18.12, 29.08, 1.64°) |
| OKLab | oklab(30.57% 0.0889 0.0025) |
| OKLCH | oklch(30.57% 0.089 1.6) |
| XYZ | xyz(4.1546, 2.5445, 2.6547) |
| Luminance | 0.0254 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Burgundy (survey)
#610023
ΔE00 6.18
Maroon (survey)
#650021
ΔE00 7.50
Merlot
#730039
ΔE00 7.69
Plum (survey)
#580F41
ΔE00 7.79
Dark Plum
#3F012C
ΔE00 8.00
Dark Maroon
#3C0008
ΔE00 8.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51172C #17513C
analogous
#511749 #51172C #511F17
triadic
#51172C #2C5117 #172C51
tetradic
#51172C #495117 #17513C #1F1751
square
#51172C #495117 #17513C #1F1751
split-complementary
#51172C #17511F #174951
monochromatic
#18070D #210912 #51172C #812546 #B03260
Accessibility & contrast
On white
13.92
#51172C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#51172C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51172C
13.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51172C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51172C | 1.00 | 13.92 | 1.51 | 13.92 |
| #FFFFFF | 13.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#22252D
Deuteranopia (green-blind)
#32302B
Tritanopia (blue-blind)
#58101F
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #51172c; /* rgb */ color: rgb(81, 23, 44); /* oklch */ color: oklch(30.6% 0.089 1.6);
Tailwind
colors: {
custom: {
50: '#855864',
500: '#51172c',
950: '#000000',
},
}SCSS
$custom: #51172c; $custom-light: #855864; $custom-dark: #000000;
JSON
{
"hex": "#51172c",
"rgb": {
"r": 81,
"g": 23,
"b": 44
},
"hsl": {
"h": 338.276,
"s": 55.769,
"l": 20.392
},
"oklch": {
"l": 0.30569,
"c": 0.08891,
"h": 1.6
},
"luminance": 0.02544
}Semantic roles & 50–950 ramp
primary
#51172C
secondary
#3C886C
accent
#DFA949
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0B0305
muted
#7C787A