#51152B#51152B

#51152B is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.3% C 0.092 H 1.8°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#51152B
RGBrgb(81, 21, 43)
HSLhsl(338, 59%, 20%)
HSVhsv(338, 74%, 32%)
CMYKcmyk(0%, 74.1%, 46.9%, 68.2%)
CIE-LABlab(17.74, 29.89, 0.99)
CIE-LCHlch(17.74, 29.91, 1.90°)
OKLaboklab(30.28% 0.0915 0.0029)
OKLCHoklch(30.28% 0.092 1.8)
XYZxyz(4.0978, 2.4606, 2.5442)
Luminance0.0246 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51152B #15513B
analogous
#511549 #51152B #511D15
triadic
#51152B #2B5115 #152B51
tetradic
#51152B #495115 #15513B #1D1551
square
#51152B #495115 #15513B #1D1551
split-complementary
#51152B #15511D #154951
monochromatic
#18060D #200811 #51152B #822245 #B22E5F

Accessibility & contrast

On white

14.08
#51152B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#51152B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51152B
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51152B#FFFFFF#000000##FFFFFF
##51152B1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21242C
Deuteranopia (green-blind)
#31302A
Tritanopia (blue-blind)
#580D1E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #51152b;
/* rgb */ color: rgb(81, 21, 43);
/* oklch */ color: oklch(30.3% 0.092 1.8);
Tailwind
colors: {
  custom: {
    50: '#855764',
    500: '#51152b',
    950: '#000000',
  },
}
SCSS
$custom: #51152b;
$custom-light: #855764;
$custom-dark: #000000;
JSON
{
  "hex": "#51152b",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 43
  },
  "hsl": {
    "h": 338,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.30277,
    "c": 0.09152,
    "h": 1.8
  },
  "luminance": 0.0246
}

Semantic roles & 50–950 ramp

primary
#51152B
secondary
#39896C
accent
#E2A946
background
#F8F5F5
surface
#F0E9EA
border
#CBC5C6
text
#0B0305
muted
#7C7879

Preview Lab

Preview with #51152B

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

Preview Lab → · Contrast checker → · Palette generator →

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