#51152E#51152E

#51152E is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.4% C 0.093 H 358.6°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#51152E
RGBrgb(81, 21, 46)
HSLhsl(335, 59%, 20%)
HSVhsv(335, 74%, 32%)
CMYKcmyk(0%, 74.1%, 43.2%, 68.2%)
CIE-LABlab(17.84, 30.26, -1.00)
CIE-LCHlch(17.84, 30.27, 358.12°)
OKLaboklab(30.39% 0.0927 -0.0022)
OKLCHoklch(30.39% 0.093 358.6)
XYZxyz(4.1549, 2.4834, 2.8448)
Luminance0.0248 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51152E #155138
analogous
#51154C #51152E #511A15
triadic
#51152E #2E5115 #152E51
tetradic
#51152E #4C5115 #155138 #1A1551
square
#51152E #4C5115 #155138 #1A1551
split-complementary
#51152E #15511A #154C51
monochromatic
#18060E #200812 #51152E #82224A #B22E65

Accessibility & contrast

On white

14.03
#51152E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#51152E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51152E
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51152E#FFFFFF#000000##FFFFFF
##51152E1.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21242F
Deuteranopia (green-blind)
#31302D
Tritanopia (blue-blind)
#580E1F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #51152e;
/* rgb */ color: rgb(81, 21, 46);
/* oklch */ color: oklch(30.4% 0.093 358.6);
Tailwind
colors: {
  custom: {
    50: '#855766',
    500: '#51152e',
    950: '#000000',
  },
}
SCSS
$custom: #51152e;
$custom-light: #855766;
$custom-dark: #000000;
JSON
{
  "hex": "#51152e",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 46
  },
  "hsl": {
    "h": 335,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.30388,
    "c": 0.09269,
    "h": 358.6
  },
  "luminance": 0.02483
}

Semantic roles & 50–950 ramp

primary
#51152E
secondary
#398968
accent
#E2A146
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0B0306
muted
#7C787A

Preview Lab

Preview with #51152E

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

Preview Lab → · Contrast checker → · Palette generator →

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