#51172F#51172F

#51172F is a dark, moderate pink. Relative luminance 0.026; OKLCH L 30.7% C 0.090 H 358.3°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#51172F
RGBrgb(81, 23, 47)
HSLhsl(335, 56%, 20%)
HSVhsv(335, 72%, 32%)
CMYKcmyk(0%, 71.6%, 42%, 68.2%)
CIE-LABlab(18.22, 29.44, -1.15)
CIE-LCHlch(18.22, 29.46, 357.76°)
OKLaboklab(30.68% 0.0901 -0.0026)
OKLCHoklch(30.68% 0.09 358.3)
XYZxyz(4.2131, 2.5678, 2.9625)
Luminance0.0257 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51172F #175139
analogous
#51174C #51172F #511C17
triadic
#51172F #2F5117 #172F51
tetradic
#51172F #4C5117 #175139 #1C1751
square
#51172F #4C5117 #175139 #1C1751
split-complementary
#51172F #17511C #174C51
monochromatic
#18070E #210913 #51172F #81254B #B03266

Accessibility & contrast

On white

13.88
#51172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51172F
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51172F#FFFFFF#000000##FFFFFF
##51172F1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222630
Deuteranopia (green-blind)
#31312E
Tritanopia (blue-blind)
#581121
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #51172f;
/* rgb */ color: rgb(81, 23, 47);
/* oklch */ color: oklch(30.7% 0.090 358.3);
Tailwind
colors: {
  custom: {
    50: '#855867',
    500: '#51172f',
    950: '#000000',
  },
}
SCSS
$custom: #51172f;
$custom-light: #855867;
$custom-dark: #000000;
JSON
{
  "hex": "#51172f",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 335.172,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.3068,
    "c": 0.0901,
    "h": 358.3
  },
  "luminance": 0.02567
}

Semantic roles & 50–950 ramp

primary
#51172F
secondary
#3C8868
accent
#DFA149
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0B0306
muted
#7C787A

Preview Lab

Preview with #51172F

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

Preview Lab → · Contrast checker → · Palette generator →

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