#51212D#51212D

#51212D is a dark, moderate red. Relative luminance 0.030; OKLCH L 32.1% C 0.073 H 6.4°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#51212D
RGBrgb(81, 33, 45)
HSLhsl(345, 42%, 22%)
HSVhsv(345, 59%, 32%)
CMYKcmyk(0%, 59.3%, 44.4%, 68.2%)
CIE-LABlab(20.15, 23.86, 3.06)
CIE-LCHlch(20.15, 24.05, 7.31°)
OKLaboklab(32.1% 0.0725 0.0082)
OKLCHoklch(32.1% 0.073 6.4)
XYZxyz(4.4111, 3.0270, 2.8341)
Luminance0.0303 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51212D #215145
analogous
#512145 #51212D #512D21
triadic
#51212D #2D5121 #212D51
tetradic
#51212D #455121 #215145 #2D2151
square
#51212D #455121 #215145 #2D2151
split-complementary
#51212D #21512D #214551
monochromatic
#16090C #260F15 #51212D #7C3345 #A8445D

Accessibility & contrast

On white

13.08
#51212D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#51212D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51212D
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51212D#FFFFFF#000000##FFFFFF
##51212D1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A2B2D
Deuteranopia (green-blind)
#36342C
Tritanopia (blue-blind)
#581C25
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #51212d;
/* rgb */ color: rgb(81, 33, 45);
/* oklch */ color: oklch(32.1% 0.073 6.4);
Tailwind
colors: {
  custom: {
    50: '#845e65',
    500: '#51212d',
    950: '#000000',
  },
}
SCSS
$custom: #51212d;
$custom-light: #845e65;
$custom-dark: #000000;
JSON
{
  "hex": "#51212d",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 45
  },
  "hsl": {
    "h": 345,
    "s": 42.105,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32098,
    "c": 0.073,
    "h": 6.4
  },
  "luminance": 0.03027
}

Semantic roles & 50–950 ramp

primary
#51212D
secondary
#498576
accent
#D2B356
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0405
muted
#7C797A

Preview Lab

Preview with #51212D

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

Preview Lab → · Contrast checker → · Palette generator →

#51212D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva