#51172E#51172E

#51172E is a dark, moderate pink. Relative luminance 0.026; OKLCH L 30.6% C 0.090 H 359.4°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#51172E
RGBrgb(81, 23, 46)
HSLhsl(336, 56%, 20%)
HSVhsv(336, 72%, 32%)
CMYKcmyk(0%, 71.6%, 43.2%, 68.2%)
CIE-LABlab(18.19, 29.31, -0.49)
CIE-LCHlch(18.19, 29.32, 359.04°)
OKLaboklab(30.64% 0.0897 -0.0009)
OKLCHoklch(30.64% 0.09 359.4)
XYZxyz(4.1931, 2.5599, 2.8575)
Luminance0.0256 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51172E #17513A
analogous
#51174B #51172E #511D17
triadic
#51172E #2E5117 #172E51
tetradic
#51172E #4B5117 #17513A #1D1751
square
#51172E #4B5117 #17513A #1D1751
split-complementary
#51172E #17511D #174B51
monochromatic
#18070E #210913 #51172E #812549 #B03264

Accessibility & contrast

On white

13.89
#51172E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#51172E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51172E
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51172E#FFFFFF#000000##FFFFFF
##51172E1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22252F
Deuteranopia (green-blind)
#32302D
Tritanopia (blue-blind)
#581120
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #51172e;
/* rgb */ color: rgb(81, 23, 46);
/* oklch */ color: oklch(30.6% 0.090 359.4);
Tailwind
colors: {
  custom: {
    50: '#855866',
    500: '#51172e',
    950: '#000000',
  },
}
SCSS
$custom: #51172e;
$custom-light: #855866;
$custom-dark: #000000;
JSON
{
  "hex": "#51172e",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 46
  },
  "hsl": {
    "h": 336.207,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.30642,
    "c": 0.08968,
    "h": 359.4
  },
  "luminance": 0.02559
}

Semantic roles & 50–950 ramp

primary
#51172E
secondary
#3C886A
accent
#DFA349
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0B0306
muted
#7C787A

Preview Lab

Preview with #51172E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#51172E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva