#51151A#51151A

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

Color values

HEX#51151A
RGBrgb(81, 21, 26)
HSLhsl(355, 59%, 20%)
HSVhsv(355, 74%, 32%)
CMYKcmyk(0%, 74.1%, 67.9%, 68.2%)
CIE-LABlab(17.28, 28.26, 12.50)
CIE-LCHlch(17.28, 30.90, 23.86°)
OKLaboklab(29.78% 0.0839 0.0301)
OKLCHoklch(29.78% 0.089 19.8)
XYZxyz(3.8483, 2.3608, 1.2301)
Luminance0.0236 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51151A #15514C
analogous
#511538 #51151A #512E15
triadic
#51151A #1A5115 #151A51
tetradic
#51151A #385115 #15514C #2E1551
square
#51151A #385115 #15514C #2E1551
split-complementary
#51151A #15512E #153851
monochromatic
#180608 #20080A #51151A #82222A #B22E39

Accessibility & contrast

On white

14.27
#51151A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51151A
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51151A#FFFFFF#000000##FFFFFF
##51151A1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25221A
Deuteranopia (green-blind)
#342F18
Tritanopia (blue-blind)
#590717
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #51151a;
/* rgb */ color: rgb(81, 21, 26);
/* oklch */ color: oklch(29.8% 0.089 19.8);
Tailwind
colors: {
  custom: {
    50: '#875756',
    500: '#51151a',
    950: '#000000',
  },
}
SCSS
$custom: #51151a;
$custom-light: #875756;
$custom-dark: #000000;
JSON
{
  "hex": "#51151a",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 26
  },
  "hsl": {
    "h": 355,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.29782,
    "c": 0.08916,
    "h": 19.8
  },
  "luminance": 0.0236
}

Semantic roles & 50–950 ramp

primary
#51151A
secondary
#398982
accent
#E2D546
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51151A

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

Preview Lab → · Contrast checker → · Palette generator →

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