#51151C#51151C

#51151C is a dark, moderate red. Relative luminance 0.024; OKLCH L 29.8% C 0.089 H 17.8°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#51151C
RGBrgb(81, 21, 28)
HSLhsl(353, 59%, 20%)
HSVhsv(353, 74%, 32%)
CMYKcmyk(0%, 74.1%, 65.4%, 68.2%)
CIE-LABlab(17.32, 28.41, 11.14)
CIE-LCHlch(17.32, 30.52, 21.40°)
OKLaboklab(29.83% 0.0848 0.0272)
OKLCHoklch(29.83% 0.089 17.8)
XYZxyz(3.8715, 2.3700, 1.3520)
Luminance0.0237 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51151C #15514A
analogous
#51153A #51151C #512C15
triadic
#51151C #1C5115 #151C51
tetradic
#51151C #3A5115 #15514A #2C1551
square
#51151C #3A5115 #15514A #2C1551
split-complementary
#51151C #15512C #153A51
monochromatic
#180608 #20080B #51151C #82222D #B22E3E

Accessibility & contrast

On white

14.25
#51151C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#51151C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51151C
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51151C#FFFFFF#000000##FFFFFF
##51151C1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24231C
Deuteranopia (green-blind)
#342F1A
Tritanopia (blue-blind)
#590718
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #51151c;
/* rgb */ color: rgb(81, 21, 28);
/* oklch */ color: oklch(29.8% 0.089 17.8);
Tailwind
colors: {
  custom: {
    50: '#865757',
    500: '#51151c',
    950: '#000000',
  },
}
SCSS
$custom: #51151c;
$custom-light: #865757;
$custom-dark: #000000;
JSON
{
  "hex": "#51151c",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 28
  },
  "hsl": {
    "h": 353,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.29829,
    "c": 0.08908,
    "h": 17.8
  },
  "luminance": 0.0237
}

Semantic roles & 50–950 ramp

primary
#51151C
secondary
#39897F
accent
#E2D046
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51151C

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

Preview Lab → · Contrast checker → · Palette generator →

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