#51173F#51173F

#51173F is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.4% C 0.100 H 342.2°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#51173F
RGBrgb(81, 23, 63)
HSLhsl(319, 56%, 20%)
HSVhsv(319, 72%, 32%)
CMYKcmyk(0%, 71.6%, 22.2%, 68.2%)
CIE-LABlab(18.89, 31.78, -11.39)
CIE-LCHlch(18.89, 33.76, 340.28°)
OKLaboklab(31.39% 0.0951 -0.0305)
OKLCHoklch(31.39% 0.1 342.2)
XYZxyz(4.5971, 2.7214, 4.9848)
Luminance0.0272 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51173F #175129
analogous
#461751 #51173F #511722
triadic
#51173F #3F5117 #173F51
tetradic
#51173F #514617 #175129 #172251
square
#51173F #514617 #175129 #172251
split-complementary
#51173F #225117 #175146
monochromatic
#180713 #21091A #51173F #812564 #B03289

Accessibility & contrast

On white

13.60
#51173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51173F
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51173F#FFFFFF#000000##FFFFFF
##51173F1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2840
Deuteranopia (green-blind)
#2D313E
Tritanopia (blue-blind)
#561828
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #51173f;
/* rgb */ color: rgb(81, 23, 63);
/* oklch */ color: oklch(31.4% 0.100 342.2);
Tailwind
colors: {
  custom: {
    50: '#845974',
    500: '#51173f',
    950: '#000000',
  },
}
SCSS
$custom: #51173f;
$custom-light: #845974;
$custom-dark: #000000;
JSON
{
  "hex": "#51173f",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 318.621,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31392,
    "c": 0.09984,
    "h": 342.2
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#51173F
secondary
#3C8853
accent
#DF7749
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0408
muted
#7C797B

Preview Lab

Preview with #51173F

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

Preview Lab → · Contrast checker → · Palette generator →

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