#51173E#51173E

#51173E is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.3% C 0.099 H 343.1°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#51173E
RGBrgb(81, 23, 62)
HSLhsl(320, 56%, 20%)
HSVhsv(320, 72%, 32%)
CMYKcmyk(0%, 71.6%, 23.5%, 68.2%)
CIE-LABlab(18.84, 31.61, -10.77)
CIE-LCHlch(18.84, 33.40, 341.19°)
OKLaboklab(31.34% 0.0948 -0.0287)
OKLCHoklch(31.34% 0.099 343.1)
XYZxyz(4.5694, 2.7104, 4.8390)
Luminance0.0271 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51173E #17512A
analogous
#471751 #51173E #511721
triadic
#51173E #3E5117 #173E51
tetradic
#51173E #514717 #17512A #172151
square
#51173E #514717 #17512A #172151
split-complementary
#51173E #215117 #175147
monochromatic
#180712 #21091A #51173E #812562 #B03287

Accessibility & contrast

On white

13.62
#51173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51173E
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51173E#FFFFFF#000000##FFFFFF
##51173E1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C283F
Deuteranopia (green-blind)
#2D313D
Tritanopia (blue-blind)
#561728
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #51173e;
/* rgb */ color: rgb(81, 23, 62);
/* oklch */ color: oklch(31.3% 0.099 343.1);
Tailwind
colors: {
  custom: {
    50: '#845973',
    500: '#51173e',
    950: '#000000',
  },
}
SCSS
$custom: #51173e;
$custom-light: #845973;
$custom-dark: #000000;
JSON
{
  "hex": "#51173e",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 319.655,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31342,
    "c": 0.09909,
    "h": 343.1
  },
  "luminance": 0.0271
}

Semantic roles & 50–950 ramp

primary
#51173E
secondary
#3C8855
accent
#DF7A49
background
#F8F5F6
surface
#EFE9EC
border
#CAC5C7
text
#0B0408
muted
#7C797B

Preview Lab

Preview with #51173E

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

Preview Lab → · Contrast checker → · Palette generator →

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