#512124#512124

#512124 is a dark, moderate red. Relative luminance 0.030; OKLCH L 31.8% C 0.072 H 18.3°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#512124
RGBrgb(81, 33, 36)
HSLhsl(356, 42%, 22%)
HSVhsv(356, 59%, 32%)
CMYKcmyk(0%, 59.3%, 55.6%, 68.2%)
CIE-LABlab(19.90, 22.80, 8.98)
CIE-LCHlch(19.90, 24.50, 21.51°)
OKLaboklab(31.83% 0.0684 0.0226)
OKLCHoklch(31.83% 0.072 18.3)
XYZxyz(4.2560, 2.9649, 2.0169)
Luminance0.0296 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512124 #21514E
analogous
#51213C #512124 #513621
triadic
#512124 #245121 #212451
tetradic
#512124 #3C5121 #21514E #362151
square
#512124 #3C5121 #21514E #362151
split-complementary
#512124 #215136 #213C51
monochromatic
#16090A #260F11 #512124 #7C3337 #A8444B

Accessibility & contrast

On white

13.18
#512124 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#512124 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512124
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512124#FFFFFF#000000##FFFFFF
##5121241.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2A24
Deuteranopia (green-blind)
#383423
Tritanopia (blue-blind)
#591A22
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #512124;
/* rgb */ color: rgb(81, 33, 36);
/* oklch */ color: oklch(31.8% 0.072 18.3);
Tailwind
colors: {
  custom: {
    50: '#855e5e',
    500: '#512124',
    950: '#000000',
  },
}
SCSS
$custom: #512124;
$custom-light: #855e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#512124",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 36
  },
  "hsl": {
    "h": 356.25,
    "s": 42.105,
    "l": 22.353
  },
  "oklch": {
    "l": 0.31829,
    "c": 0.07207,
    "h": 18.3
  },
  "luminance": 0.02964
}

Semantic roles & 50–950 ramp

primary
#512124
secondary
#498581
accent
#D2CA56
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0B0404
muted
#7C7979

Preview Lab

Preview with #512124

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

Preview Lab → · Contrast checker → · Palette generator →

#512124 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva