#51151E#51151E

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

Color values

HEX#51151E
RGBrgb(81, 21, 30)
HSLhsl(351, 59%, 20%)
HSVhsv(351, 74%, 32%)
CMYKcmyk(0%, 74.1%, 63%, 68.2%)
CIE-LABlab(17.37, 28.58, 9.77)
CIE-LCHlch(17.37, 30.20, 18.88°)
OKLaboklab(29.88% 0.0858 0.0242)
OKLCHoklch(29.88% 0.089 15.7)
XYZxyz(3.8962, 2.3799, 1.4822)
Luminance0.0238 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51151E #155148
analogous
#51153C #51151E #512A15
triadic
#51151E #1E5115 #151E51
tetradic
#51151E #3C5115 #155148 #2A1551
square
#51151E #3C5115 #155148 #2A1551
split-complementary
#51151E #15512A #153C51
monochromatic
#180609 #20080C #51151E #822230 #B22E42

Accessibility & contrast

On white

14.23
#51151E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#51151E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51151E
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51151E#FFFFFF#000000##FFFFFF
##51151E1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24231E
Deuteranopia (green-blind)
#332F1C
Tritanopia (blue-blind)
#590819
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #51151e;
/* rgb */ color: rgb(81, 21, 30);
/* oklch */ color: oklch(29.9% 0.089 15.7);
Tailwind
colors: {
  custom: {
    50: '#865759',
    500: '#51151e',
    950: '#000000',
  },
}
SCSS
$custom: #51151e;
$custom-light: #865759;
$custom-dark: #000000;
JSON
{
  "hex": "#51151e",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 30
  },
  "hsl": {
    "h": 351,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.29878,
    "c": 0.08909,
    "h": 15.7
  },
  "luminance": 0.02379
}

Semantic roles & 50–950 ramp

primary
#51151E
secondary
#39897D
accent
#E2CB46
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51151E

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

Preview Lab → · Contrast checker → · Palette generator →

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