#51182F#51182F

#51182F is a dark, moderate pink. Relative luminance 0.026; OKLCH L 30.8% C 0.089 H 358.7°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#51182F
RGBrgb(81, 24, 47)
HSLhsl(336, 54%, 21%)
HSVhsv(336, 70%, 32%)
CMYKcmyk(0%, 70.4%, 42%, 68.2%)
CIE-LABlab(18.40, 28.95, -0.89)
CIE-LCHlch(18.40, 28.97, 358.25°)
OKLaboklab(30.81% 0.0885 -0.002)
OKLCHoklch(30.81% 0.089 358.7)
XYZxyz(4.2333, 2.6083, 2.9693)
Luminance0.0261 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51182F #18513A
analogous
#51184B #51182F #511D18
triadic
#51182F #2F5118 #182F51
tetradic
#51182F #4B5118 #18513A #1D1851
square
#51182F #4B5118 #18513A #1D1851
split-complementary
#51182F #18511D #184B51
monochromatic
#18070E #220A14 #51182F #80264A #AF3466

Accessibility & contrast

On white

13.80
#51182F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#51182F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51182F
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51182F#FFFFFF#000000##FFFFFF
##51182F1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222630
Deuteranopia (green-blind)
#32312E
Tritanopia (blue-blind)
#581221
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #51182f;
/* rgb */ color: rgb(81, 24, 47);
/* oklch */ color: oklch(30.8% 0.089 358.7);
Tailwind
colors: {
  custom: {
    50: '#855967',
    500: '#51182f',
    950: '#000000',
  },
}
SCSS
$custom: #51182f;
$custom-light: #855967;
$custom-dark: #000000;
JSON
{
  "hex": "#51182f",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 47
  },
  "hsl": {
    "h": 335.789,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30813,
    "c": 0.08855,
    "h": 358.7
  },
  "luminance": 0.02608
}

Semantic roles & 50–950 ramp

primary
#51182F
secondary
#3D886A
accent
#DEA24A
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0B0406
muted
#7C797A

Preview Lab

Preview with #51182F

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

Preview Lab → · Contrast checker → · Palette generator →

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