#51173B#51173B

#51173B is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.2% C 0.097 H 346.0°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#51173B
RGBrgb(81, 23, 59)
HSLhsl(323, 56%, 20%)
HSVhsv(323, 72%, 32%)
CMYKcmyk(0%, 71.6%, 27.2%, 68.2%)
CIE-LABlab(18.71, 31.14, -8.88)
CIE-LCHlch(18.71, 32.38, 344.08°)
OKLaboklab(31.2% 0.0941 -0.0235)
OKLCHoklch(31.2% 0.097 346)
XYZxyz(4.4893, 2.6783, 4.4174)
Luminance0.0268 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51173B #17512D
analogous
#4A1751 #51173B #51171E
triadic
#51173B #3B5117 #173B51
tetradic
#51173B #514A17 #17512D #171E51
square
#51173B #514A17 #17512D #171E51
split-complementary
#51173B #1E5117 #17514A
monochromatic
#180711 #210918 #51173B #81255E #B03280

Accessibility & contrast

On white

13.68
#51173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#51173B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51173B
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51173B#FFFFFF#000000##FFFFFF
##51173B1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D273C
Deuteranopia (green-blind)
#2E313A
Tritanopia (blue-blind)
#571626
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #51173b;
/* rgb */ color: rgb(81, 23, 59);
/* oklch */ color: oklch(31.2% 0.097 346.0);
Tailwind
colors: {
  custom: {
    50: '#845971',
    500: '#51173b',
    950: '#000000',
  },
}
SCSS
$custom: #51173b;
$custom-light: #845971;
$custom-dark: #000000;
JSON
{
  "hex": "#51173b",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 322.759,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31196,
    "c": 0.09695,
    "h": 346
  },
  "luminance": 0.02678
}

Semantic roles & 50–950 ramp

primary
#51173B
secondary
#3C8859
accent
#DF8249
background
#F8F5F6
surface
#EFE9EC
border
#CAC5C7
text
#0B0407
muted
#7C797A

Preview Lab

Preview with #51173B

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

Preview Lab → · Contrast checker → · Palette generator →

#51173B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva