#51121B#51121B

#51121B is a dark, moderate red. Relative luminance 0.023; OKLCH L 29.4% C 0.093 H 17.0°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#51121B
RGBrgb(81, 18, 27)
HSLhsl(351, 64%, 19%)
HSVhsv(351, 78%, 32%)
CMYKcmyk(0%, 77.8%, 66.7%, 68.2%)
CIE-LABlab(16.80, 29.69, 11.17)
CIE-LCHlch(16.80, 31.72, 20.62°)
OKLaboklab(29.44% 0.0887 0.0272)
OKLCHoklch(29.44% 0.093 17)
XYZxyz(3.8079, 2.2616, 1.2727)
Luminance0.0226 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51121B #125148
analogous
#51123B #51121B #512912
triadic
#51121B #1B5112 #121B51
tetradic
#51121B #3B5112 #125148 #291251
square
#51121B #3B5112 #125148 #291251
split-complementary
#51121B #125129 #123B51
monochromatic
#190608 #1F070A #51121B #831D2C #B5283C

Accessibility & contrast

On white

14.46
#51121B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#51121B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51121B
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51121B#FFFFFF#000000##FFFFFF
##51121B1.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23211B
Deuteranopia (green-blind)
#332E19
Tritanopia (blue-blind)
#590316
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #51121b;
/* rgb */ color: rgb(81, 18, 27);
/* oklch */ color: oklch(29.4% 0.093 17.0);
Tailwind
colors: {
  custom: {
    50: '#875557',
    500: '#51121b',
    950: '#000000',
  },
}
SCSS
$custom: #51121b;
$custom-light: #875557;
$custom-dark: #000000;
JSON
{
  "hex": "#51121b",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 27
  },
  "hsl": {
    "h": 351.429,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29437,
    "c": 0.09276,
    "h": 17
  },
  "luminance": 0.02261
}

Semantic roles & 50–950 ramp

primary
#51121B
secondary
#358A7E
accent
#E7CF41
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51121B

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

Preview Lab → · Contrast checker → · Palette generator →

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