#51172C#51172C

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

Color values

HEX#51172C
RGBrgb(81, 23, 44)
HSLhsl(338, 56%, 20%)
HSVhsv(338, 72%, 32%)
CMYKcmyk(0%, 71.6%, 45.7%, 68.2%)
CIE-LABlab(18.12, 29.07, 0.83)
CIE-LCHlch(18.12, 29.08, 1.64°)
OKLaboklab(30.57% 0.0889 0.0025)
OKLCHoklch(30.57% 0.089 1.6)
XYZxyz(4.1546, 2.5445, 2.6547)
Luminance0.0254 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51172C #17513C
analogous
#511749 #51172C #511F17
triadic
#51172C #2C5117 #172C51
tetradic
#51172C #495117 #17513C #1F1751
square
#51172C #495117 #17513C #1F1751
split-complementary
#51172C #17511F #174951
monochromatic
#18070D #210912 #51172C #812546 #B03260

Accessibility & contrast

On white

13.92
#51172C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51172C
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51172C#FFFFFF#000000##FFFFFF
##51172C1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22252D
Deuteranopia (green-blind)
#32302B
Tritanopia (blue-blind)
#58101F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #51172c;
/* rgb */ color: rgb(81, 23, 44);
/* oklch */ color: oklch(30.6% 0.089 1.6);
Tailwind
colors: {
  custom: {
    50: '#855864',
    500: '#51172c',
    950: '#000000',
  },
}
SCSS
$custom: #51172c;
$custom-light: #855864;
$custom-dark: #000000;
JSON
{
  "hex": "#51172c",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 44
  },
  "hsl": {
    "h": 338.276,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.30569,
    "c": 0.08891,
    "h": 1.6
  },
  "luminance": 0.02544
}

Semantic roles & 50–950 ramp

primary
#51172C
secondary
#3C886C
accent
#DFA949
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0B0305
muted
#7C787A

Preview Lab

Preview with #51172C

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

Preview Lab → · Contrast checker → · Palette generator →

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