#51182A#51182A

#51182A is a dark, moderate pink. Relative luminance 0.026; OKLCH L 30.6% C 0.087 H 4.3°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#51182A
RGBrgb(81, 24, 42)
HSLhsl(341, 54%, 21%)
HSVhsv(341, 70%, 32%)
CMYKcmyk(0%, 70.4%, 48.1%, 68.2%)
CIE-LABlab(18.23, 28.34, 2.42)
CIE-LCHlch(18.23, 28.44, 4.88°)
OKLaboklab(30.63% 0.0865 0.0065)
OKLCHoklch(30.63% 0.087 4.3)
XYZxyz(4.1382, 2.5703, 2.4682)
Luminance0.0257 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51182A #18513F
analogous
#511846 #51182A #512218
triadic
#51182A #2A5118 #182A51
tetradic
#51182A #465118 #18513F #221851
square
#51182A #465118 #18513F #221851
split-complementary
#51182A #185122 #184651
monochromatic
#18070C #220A12 #51182A #802642 #AF345B

Accessibility & contrast

On white

13.87
#51182A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#51182A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51182A
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51182A#FFFFFF#000000##FFFFFF
##51182A1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24252A
Deuteranopia (green-blind)
#333129
Tritanopia (blue-blind)
#58111F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #51182a;
/* rgb */ color: rgb(81, 24, 42);
/* oklch */ color: oklch(30.6% 0.087 4.3);
Tailwind
colors: {
  custom: {
    50: '#855963',
    500: '#51182a',
    950: '#000000',
  },
}
SCSS
$custom: #51182a;
$custom-light: #855963;
$custom-dark: #000000;
JSON
{
  "hex": "#51182a",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 42
  },
  "hsl": {
    "h": 341.053,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30633,
    "c": 0.08674,
    "h": 4.3
  },
  "luminance": 0.0257
}

Semantic roles & 50–950 ramp

primary
#51182A
secondary
#3D8870
accent
#DEAF4A
background
#F8F5F5
surface
#F0E9EA
border
#CBC5C6
text
#0B0405
muted
#7C7979

Preview Lab

Preview with #51182A

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

Preview Lab → · Contrast checker → · Palette generator →

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