#51182C#51182C

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

Color values

HEX#51182C
RGBrgb(81, 24, 44)
HSLhsl(339, 54%, 21%)
HSVhsv(339, 70%, 32%)
CMYKcmyk(0%, 70.4%, 45.7%, 68.2%)
CIE-LABlab(18.30, 28.58, 1.09)
CIE-LCHlch(18.30, 28.60, 2.19°)
OKLaboklab(30.7% 0.0873 0.0032)
OKLCHoklch(30.7% 0.087 2.1)
XYZxyz(4.1749, 2.5849, 2.6615)
Luminance0.0258 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51182C #18513D
analogous
#511848 #51182C #512018
triadic
#51182C #2C5118 #182C51
tetradic
#51182C #485118 #18513D #201851
square
#51182C #485118 #18513D #201851
split-complementary
#51182C #185120 #184851
monochromatic
#18070D #220A12 #51182C #802646 #AF345F

Accessibility & contrast

On white

13.84
#51182C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51182C
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51182C#FFFFFF#000000##FFFFFF
##51182C1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

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

Design tokens & code

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

Semantic roles & 50–950 ramp

primary
#51182C
secondary
#3D886E
accent
#DEAA4A
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0B0405
muted
#7C797A

Preview Lab

Preview with #51182C

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

Preview Lab → · Contrast checker → · Palette generator →

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