#51173C#51173C

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

Color values

HEX#51173C
RGBrgb(81, 23, 60)
HSLhsl(322, 56%, 20%)
HSVhsv(322, 72%, 32%)
CMYKcmyk(0%, 71.6%, 25.9%, 68.2%)
CIE-LABlab(18.75, 31.30, -9.51)
CIE-LCHlch(18.75, 32.71, 343.09°)
OKLaboklab(31.24% 0.0943 -0.0253)
OKLCHoklch(31.24% 0.098 345)
XYZxyz(4.5155, 2.6888, 4.5553)
Luminance0.0269 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51173C #17512C
analogous
#491751 #51173C #51171F
triadic
#51173C #3C5117 #173C51
tetradic
#51173C #514917 #17512C #171F51
square
#51173C #514917 #17512C #171F51
split-complementary
#51173C #1F5117 #175149
monochromatic
#180712 #210919 #51173C #81255F #B03283

Accessibility & contrast

On white

13.66
#51173C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51173C
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51173C#FFFFFF#000000##FFFFFF
##51173C1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D273D
Deuteranopia (green-blind)
#2E313B
Tritanopia (blue-blind)
#571627
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #51173c;
/* rgb */ color: rgb(81, 23, 60);
/* oklch */ color: oklch(31.2% 0.098 345.0);
Tailwind
colors: {
  custom: {
    50: '#845971',
    500: '#51173c',
    950: '#000000',
  },
}
SCSS
$custom: #51173c;
$custom-light: #845971;
$custom-dark: #000000;
JSON
{
  "hex": "#51173c",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 60
  },
  "hsl": {
    "h": 321.724,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31244,
    "c": 0.09764,
    "h": 345
  },
  "luminance": 0.02688
}

Semantic roles & 50–950 ramp

primary
#51173C
secondary
#3C8857
accent
#DF7F49
background
#F8F5F6
surface
#EFE9EC
border
#CAC5C7
text
#0B0407
muted
#7C797A

Preview Lab

Preview with #51173C

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

Preview Lab → · Contrast checker → · Palette generator →

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