#51182B#51182B

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

Color values

HEX#51182B
RGBrgb(81, 24, 43)
HSLhsl(340, 54%, 21%)
HSVhsv(340, 70%, 32%)
CMYKcmyk(0%, 70.4%, 46.9%, 68.2%)
CIE-LABlab(18.27, 28.46, 1.76)
CIE-LCHlch(18.27, 28.51, 3.53°)
OKLaboklab(30.67% 0.0869 0.0049)
OKLCHoklch(30.67% 0.087 3.2)
XYZxyz(4.1563, 2.5775, 2.5637)
Luminance0.0258 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51182B #18513E
analogous
#511847 #51182B #512118
triadic
#51182B #2B5118 #182B51
tetradic
#51182B #475118 #18513E #211851
square
#51182B #475118 #18513E #211851
split-complementary
#51182B #185121 #184751
monochromatic
#18070D #220A12 #51182B #802644 #AF345D

Accessibility & contrast

On white

13.86
#51182B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51182B
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51182B#FFFFFF#000000##FFFFFF
##51182B1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23262B
Deuteranopia (green-blind)
#33312A
Tritanopia (blue-blind)
#58111F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #51182b;
/* rgb */ color: rgb(81, 24, 43);
/* oklch */ color: oklch(30.7% 0.087 3.2);
Tailwind
colors: {
  custom: {
    50: '#855964',
    500: '#51182b',
    950: '#000000',
  },
}
SCSS
$custom: #51182b;
$custom-light: #855964;
$custom-dark: #000000;
JSON
{
  "hex": "#51182b",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 43
  },
  "hsl": {
    "h": 340,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30667,
    "c": 0.08705,
    "h": 3.2
  },
  "luminance": 0.02577
}

Semantic roles & 50–950 ramp

primary
#51182B
secondary
#3D886F
accent
#DEAC4A
background
#F8F5F5
surface
#F0E9EA
border
#CBC5C6
text
#0B0405
muted
#7C7979

Preview Lab

Preview with #51182B

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

Preview Lab → · Contrast checker → · Palette generator →

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