#51172D#51172D

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

Color values

HEX#51172D
RGBrgb(81, 23, 45)
HSLhsl(337, 56%, 20%)
HSVhsv(337, 72%, 32%)
CMYKcmyk(0%, 71.6%, 44.4%, 68.2%)
CIE-LABlab(18.15, 29.19, 0.17)
CIE-LCHlch(18.15, 29.19, 0.33°)
OKLaboklab(30.61% 0.0893 0.0008)
OKLCHoklch(30.61% 0.089 0.5)
XYZxyz(4.1737, 2.5521, 2.7549)
Luminance0.0255 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51172D #17513B
analogous
#51174A #51172D #511E17
triadic
#51172D #2D5117 #172D51
tetradic
#51172D #4A5117 #17513B #1E1751
square
#51172D #4A5117 #17513B #1E1751
split-complementary
#51172D #17511E #174A51
monochromatic
#18070D #210913 #51172D #812547 #B03262

Accessibility & contrast

On white

13.90
#51172D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51172D
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51172D#FFFFFF#000000##FFFFFF
##51172D1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51172d;
/* rgb */ color: rgb(81, 23, 45);
/* oklch */ color: oklch(30.6% 0.089 0.5);
Tailwind
colors: {
  custom: {
    50: '#855865',
    500: '#51172d',
    950: '#000000',
  },
}
SCSS
$custom: #51172d;
$custom-light: #855865;
$custom-dark: #000000;
JSON
{
  "hex": "#51172d",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 45
  },
  "hsl": {
    "h": 337.241,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.30605,
    "c": 0.08928,
    "h": 0.5
  },
  "luminance": 0.02552
}

Semantic roles & 50–950 ramp

primary
#51172D
secondary
#3C886B
accent
#DFA649
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0B0305
muted
#7C787A

Preview Lab

Preview with #51172D

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

Preview Lab → · Contrast checker → · Palette generator →

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