#51172B#51172B

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

Color values

HEX#51172B
RGBrgb(81, 23, 43)
HSLhsl(339, 56%, 20%)
HSVhsv(339, 72%, 32%)
CMYKcmyk(0%, 71.6%, 46.9%, 68.2%)
CIE-LABlab(18.09, 28.95, 1.49)
CIE-LCHlch(18.09, 28.99, 2.96°)
OKLaboklab(30.53% 0.0885 0.0042)
OKLCHoklch(30.53% 0.089 2.7)
XYZxyz(4.1361, 2.5370, 2.5569)
Luminance0.0254 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51172B #17513D
analogous
#511748 #51172B #512017
triadic
#51172B #2B5117 #172B51
tetradic
#51172B #485117 #17513D #201751
square
#51172B #485117 #17513D #201751
split-complementary
#51172B #175120 #174851
monochromatic
#18070D #210912 #51172B #812544 #B0325E

Accessibility & contrast

On white

13.93
#51172B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51172B
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51172B#FFFFFF#000000##FFFFFF
##51172B1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23252C
Deuteranopia (green-blind)
#32302A
Tritanopia (blue-blind)
#58101F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #51172b;
/* rgb */ color: rgb(81, 23, 43);
/* oklch */ color: oklch(30.5% 0.089 2.7);
Tailwind
colors: {
  custom: {
    50: '#855864',
    500: '#51172b',
    950: '#000000',
  },
}
SCSS
$custom: #51172b;
$custom-light: #855864;
$custom-dark: #000000;
JSON
{
  "hex": "#51172b",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 43
  },
  "hsl": {
    "h": 339.31,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.30533,
    "c": 0.08857,
    "h": 2.7
  },
  "luminance": 0.02537
}

Semantic roles & 50–950 ramp

primary
#51172B
secondary
#3C886E
accent
#DFAB49
background
#F8F5F5
surface
#F0E9EA
border
#CBC5C6
text
#0B0305
muted
#7C7879

Preview Lab

Preview with #51172B

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

Preview Lab → · Contrast checker → · Palette generator →

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