#51152F#51152F

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

Color values

HEX#51152F
RGBrgb(81, 21, 47)
HSLhsl(334, 59%, 20%)
HSVhsv(334, 74%, 32%)
CMYKcmyk(0%, 74.1%, 42%, 68.2%)
CIE-LABlab(17.88, 30.38, -1.65)
CIE-LCHlch(17.88, 30.43, 356.88°)
OKLaboklab(30.43% 0.093 -0.004)
OKLCHoklch(30.43% 0.093 357.6)
XYZxyz(4.1749, 2.4914, 2.9498)
Luminance0.0249 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51152F #155137
analogous
#51154D #51152F #511915
triadic
#51152F #2F5115 #152F51
tetradic
#51152F #4D5115 #155137 #191551
square
#51152F #4D5115 #155137 #191551
split-complementary
#51152F #155119 #154D51
monochromatic
#18060E #200813 #51152F #82224B #B22E67

Accessibility & contrast

On white

14.02
#51152F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51152F
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51152F#FFFFFF#000000##FFFFFF
##51152F1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202530
Deuteranopia (green-blind)
#31302E
Tritanopia (blue-blind)
#580F20
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #51152f;
/* rgb */ color: rgb(81, 21, 47);
/* oklch */ color: oklch(30.4% 0.093 357.6);
Tailwind
colors: {
  custom: {
    50: '#855767',
    500: '#51152f',
    950: '#000000',
  },
}
SCSS
$custom: #51152f;
$custom-light: #855767;
$custom-dark: #000000;
JSON
{
  "hex": "#51152f",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 47
  },
  "hsl": {
    "h": 334,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.30427,
    "c": 0.09312,
    "h": 357.6
  },
  "luminance": 0.02491
}

Semantic roles & 50–950 ramp

primary
#51152F
secondary
#398966
accent
#E29E46
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0B0306
muted
#7C787A

Preview Lab

Preview with #51152F

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

Preview Lab → · Contrast checker → · Palette generator →

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