#51182D#51182D

#51182D is a dark, moderate pink. Relative luminance 0.026; OKLCH L 30.7% C 0.088 H 1.0°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#51182D
RGBrgb(81, 24, 45)
HSLhsl(338, 54%, 21%)
HSVhsv(338, 70%, 32%)
CMYKcmyk(0%, 70.4%, 44.4%, 68.2%)
CIE-LABlab(18.33, 28.70, 0.43)
CIE-LCHlch(18.33, 28.70, 0.86°)
OKLaboklab(30.74% 0.0877 0.0015)
OKLCHoklch(30.74% 0.088 1)
XYZxyz(4.1939, 2.5926, 2.7617)
Luminance0.0259 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51182D #18513C
analogous
#511849 #51182D #511F18
triadic
#51182D #2D5118 #182D51
tetradic
#51182D #495118 #18513C #1F1851
square
#51182D #495118 #18513C #1F1851
split-complementary
#51182D #18511F #184951
monochromatic
#18070D #220A13 #51182D #802647 #AF3461

Accessibility & contrast

On white

13.83
#51182D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51182D
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51182D#FFFFFF#000000##FFFFFF
##51182D1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23262E
Deuteranopia (green-blind)
#32312C
Tritanopia (blue-blind)
#581220
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #51182d;
/* rgb */ color: rgb(81, 24, 45);
/* oklch */ color: oklch(30.7% 0.088 1.0);
Tailwind
colors: {
  custom: {
    50: '#855965',
    500: '#51182d',
    950: '#000000',
  },
}
SCSS
$custom: #51182d;
$custom-light: #855965;
$custom-dark: #000000;
JSON
{
  "hex": "#51182d",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 45
  },
  "hsl": {
    "h": 337.895,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30739,
    "c": 0.08774,
    "h": 1
  },
  "luminance": 0.02592
}

Semantic roles & 50–950 ramp

primary
#51182D
secondary
#3D886C
accent
#DEA74A
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0B0405
muted
#7C797A

Preview Lab

Preview with #51182D

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

Preview Lab → · Contrast checker → · Palette generator →

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