#51182E#51182E

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

Color values

HEX#51182E
RGBrgb(81, 24, 46)
HSLhsl(337, 54%, 21%)
HSVhsv(337, 70%, 32%)
CMYKcmyk(0%, 70.4%, 43.2%, 68.2%)
CIE-LABlab(18.37, 28.83, -0.23)
CIE-LCHlch(18.37, 28.83, 359.54°)
OKLaboklab(30.78% 0.0881 -0.0002)
OKLCHoklch(30.78% 0.088 359.8)
XYZxyz(4.2134, 2.6003, 2.8643)
Luminance0.0260 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51182E #18513B
analogous
#51184A #51182E #511E18
triadic
#51182E #2E5118 #182E51
tetradic
#51182E #4A5118 #18513B #1E1851
square
#51182E #4A5118 #18513B #1E1851
split-complementary
#51182E #18511E #184A51
monochromatic
#18070D #220A13 #51182E #802649 #AF3464

Accessibility & contrast

On white

13.82
#51182E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51182E
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51182E#FFFFFF#000000##FFFFFF
##51182E1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23262F
Deuteranopia (green-blind)
#32312D
Tritanopia (blue-blind)
#581221
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #51182e;
/* rgb */ color: rgb(81, 24, 46);
/* oklch */ color: oklch(30.8% 0.088 359.8);
Tailwind
colors: {
  custom: {
    50: '#855966',
    500: '#51182e',
    950: '#000000',
  },
}
SCSS
$custom: #51182e;
$custom-light: #855966;
$custom-dark: #000000;
JSON
{
  "hex": "#51182e",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 46
  },
  "hsl": {
    "h": 336.842,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30775,
    "c": 0.08813,
    "h": 359.8
  },
  "luminance": 0.026
}

Semantic roles & 50–950 ramp

primary
#51182E
secondary
#3D886B
accent
#DEA54A
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0B0406
muted
#7C797A

Preview Lab

Preview with #51182E

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

Preview Lab → · Contrast checker → · Palette generator →

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