#51121C#51121C

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

Color values

HEX#51121C
RGBrgb(81, 18, 28)
HSLhsl(350, 64%, 19%)
HSVhsv(350, 78%, 32%)
CMYKcmyk(0%, 77.8%, 65.4%, 68.2%)
CIE-LABlab(16.83, 29.77, 10.48)
CIE-LCHlch(16.83, 31.56, 19.40°)
OKLaboklab(29.46% 0.0891 0.0257)
OKLCHoklch(29.46% 0.093 16.1)
XYZxyz(3.8196, 2.2663, 1.3347)
Luminance0.0227 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51121C #125147
analogous
#51123C #51121C #512812
triadic
#51121C #1C5112 #121C51
tetradic
#51121C #3C5112 #125147 #281251
square
#51121C #3C5112 #125147 #281251
split-complementary
#51121C #125128 #123C51
monochromatic
#190609 #1F070B #51121C #831D2D #B5283F

Accessibility & contrast

On white

14.45
#51121C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51121C
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51121C#FFFFFF#000000##FFFFFF
##51121C1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51121c;
/* rgb */ color: rgb(81, 18, 28);
/* oklch */ color: oklch(29.5% 0.093 16.1);
Tailwind
colors: {
  custom: {
    50: '#875557',
    500: '#51121c',
    950: '#000000',
  },
}
SCSS
$custom: #51121c;
$custom-light: #875557;
$custom-dark: #000000;
JSON
{
  "hex": "#51121c",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 28
  },
  "hsl": {
    "h": 350.476,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29461,
    "c": 0.09277,
    "h": 16.1
  },
  "luminance": 0.02266
}

Semantic roles & 50–950 ramp

primary
#51121C
secondary
#358A7C
accent
#E7CC41
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51121C

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

Preview Lab → · Contrast checker → · Palette generator →

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