#51162C#51162C

#51162C is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.4% C 0.090 H 1.2°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#51162C
RGBrgb(81, 22, 44)
HSLhsl(338, 57%, 20%)
HSVhsv(338, 73%, 32%)
CMYKcmyk(0%, 72.8%, 45.7%, 68.2%)
CIE-LABlab(17.94, 29.55, 0.58)
CIE-LCHlch(17.94, 29.55, 1.12°)
OKLaboklab(30.44% 0.0904 0.0018)
OKLCHoklch(30.44% 0.09 1.2)
XYZxyz(4.1352, 2.5055, 2.6482)
Luminance0.0250 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51162C #16513B
analogous
#51164A #51162C #511D16
triadic
#51162C #2C5116 #162C51
tetradic
#51162C #4A5116 #16513B #1D1651
square
#51162C #4A5116 #16513B #1D1651
split-complementary
#51162C #16511D #164A51
monochromatic
#18070D #210912 #51162C #812346 #B13060

Accessibility & contrast

On white

13.99
#51162C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#51162C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51162C
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51162C#FFFFFF#000000##FFFFFF
##51162C1.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51162c;
/* rgb */ color: rgb(81, 22, 44);
/* oklch */ color: oklch(30.4% 0.090 1.2);
Tailwind
colors: {
  custom: {
    50: '#855864',
    500: '#51162c',
    950: '#000000',
  },
}
SCSS
$custom: #51162c;
$custom-light: #855864;
$custom-dark: #000000;
JSON
{
  "hex": "#51162c",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 44
  },
  "hsl": {
    "h": 337.627,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.30439,
    "c": 0.09041,
    "h": 1.2
  },
  "luminance": 0.02505
}

Semantic roles & 50–950 ramp

primary
#51162C
secondary
#3A886B
accent
#E1A747
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0B0305
muted
#7C787A

Preview Lab

Preview with #51162C

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

Preview Lab → · Contrast checker → · Palette generator →

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