#51162F#51162F

#51162F is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.6% C 0.092 H 357.9°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#51162F
RGBrgb(81, 22, 47)
HSLhsl(335, 57%, 20%)
HSVhsv(335, 73%, 32%)
CMYKcmyk(0%, 72.8%, 42%, 68.2%)
CIE-LABlab(18.05, 29.92, -1.41)
CIE-LCHlch(18.05, 29.95, 357.31°)
OKLaboklab(30.55% 0.0916 -0.0033)
OKLCHoklch(30.55% 0.092 357.9)
XYZxyz(4.1936, 2.5289, 2.9561)
Luminance0.0253 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51162F #165138
analogous
#51164D #51162F #511A16
triadic
#51162F #2F5116 #162F51
tetradic
#51162F #4D5116 #165138 #1A1651
square
#51162F #4D5116 #165138 #1A1651
split-complementary
#51162F #16511A #164D51
monochromatic
#18070E #210913 #51162F #81234B #B13067

Accessibility & contrast

On white

13.95
#51162F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51162F
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51162F#FFFFFF#000000##FFFFFF
##51162F1.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)
#212530
Deuteranopia (green-blind)
#31302E
Tritanopia (blue-blind)
#581020
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #51162f;
/* rgb */ color: rgb(81, 22, 47);
/* oklch */ color: oklch(30.6% 0.092 357.9);
Tailwind
colors: {
  custom: {
    50: '#855867',
    500: '#51162f',
    950: '#000000',
  },
}
SCSS
$custom: #51162f;
$custom-light: #855867;
$custom-dark: #000000;
JSON
{
  "hex": "#51162f",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 47
  },
  "hsl": {
    "h": 334.576,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.30552,
    "c": 0.09163,
    "h": 357.9
  },
  "luminance": 0.02528
}

Semantic roles & 50–950 ramp

primary
#51162F
secondary
#3A8867
accent
#E1A047
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0B0306
muted
#7C787A

Preview Lab

Preview with #51162F

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

Preview Lab → · Contrast checker → · Palette generator →

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