#51172A#51172A

#51172A is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.5% C 0.088 H 3.8°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#51172A
RGBrgb(81, 23, 42)
HSLhsl(340, 56%, 20%)
HSVhsv(340, 72%, 32%)
CMYKcmyk(0%, 71.6%, 48.1%, 68.2%)
CIE-LABlab(18.05, 28.83, 2.16)
CIE-LCHlch(18.05, 28.91, 4.29°)
OKLaboklab(30.5% 0.0881 0.0059)
OKLCHoklch(30.5% 0.088 3.8)
XYZxyz(4.1180, 2.5298, 2.4615)
Luminance0.0253 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51172A #17513E
analogous
#511747 #51172A #512117
triadic
#51172A #2A5117 #172A51
tetradic
#51172A #475117 #17513E #211751
square
#51172A #475117 #17513E #211751
split-complementary
#51172A #175121 #174751
monochromatic
#18070C #210911 #51172A #812543 #B0325B

Accessibility & contrast

On white

13.95
#51172A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51172A
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51172A#FFFFFF#000000##FFFFFF
##51172A1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23252A
Deuteranopia (green-blind)
#323029
Tritanopia (blue-blind)
#580F1F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #51172a;
/* rgb */ color: rgb(81, 23, 42);
/* oklch */ color: oklch(30.5% 0.088 3.8);
Tailwind
colors: {
  custom: {
    50: '#855863',
    500: '#51172a',
    950: '#000000',
  },
}
SCSS
$custom: #51172a;
$custom-light: #855863;
$custom-dark: #000000;
JSON
{
  "hex": "#51172a",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 42
  },
  "hsl": {
    "h": 340.345,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.30499,
    "c": 0.08825,
    "h": 3.8
  },
  "luminance": 0.02529
}

Semantic roles & 50–950 ramp

primary
#51172A
secondary
#3C886F
accent
#DFAE49
background
#F8F5F5
surface
#F0E9EA
border
#CBC5C6
text
#0B0305
muted
#7C7879

Preview Lab

Preview with #51172A

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

Preview Lab → · Contrast checker → · Palette generator →

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