#51242A#51242A

#51242A is a dark, moderate red. Relative luminance 0.032; OKLCH L 32.5% C 0.068 H 13.2°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#51242A
RGBrgb(81, 36, 42)
HSLhsl(352, 38%, 23%)
HSVhsv(352, 56%, 32%)
CMYKcmyk(0%, 55.6%, 48.1%, 68.2%)
CIE-LABlab(20.75, 21.72, 5.99)
CIE-LCHlch(20.75, 22.53, 15.41°)
OKLaboklab(32.52% 0.0657 0.0155)
OKLCHoklch(32.52% 0.068 13.2)
XYZxyz(4.4424, 3.1787, 2.5696)
Luminance0.0318 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51242A #24514B
analogous
#512440 #51242A #513424
triadic
#51242A #2A5124 #242A51
tetradic
#51242A #405124 #24514B #342451
square
#51242A #405124 #24514B #342451
split-complementary
#51242A #245134 #244051
monochromatic
#15090B #271114 #51242A #7B3740 #A64A56

Accessibility & contrast

On white

12.84
#51242A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#51242A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51242A
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51242A#FFFFFF#000000##FFFFFF
##51242A1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2C2A
Deuteranopia (green-blind)
#383529
Tritanopia (blue-blind)
#581F26
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #51242a;
/* rgb */ color: rgb(81, 36, 42);
/* oklch */ color: oklch(32.5% 0.068 13.2);
Tailwind
colors: {
  custom: {
    50: '#846063',
    500: '#51242a',
    950: '#000000',
  },
}
SCSS
$custom: #51242a;
$custom-light: #846063;
$custom-dark: #000000;
JSON
{
  "hex": "#51242a",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 42
  },
  "hsl": {
    "h": 352,
    "s": 38.462,
    "l": 22.941
  },
  "oklch": {
    "l": 0.32518,
    "c": 0.06751,
    "h": 13.2
  },
  "luminance": 0.03178
}

Semantic roles & 50–950 ramp

primary
#51242A
secondary
#4C857D
accent
#CEBF59
background
#F8F5F5
surface
#EFE9EA
border
#CAC5C6
text
#0B0505
muted
#7C7979

Preview Lab

Preview with #51242A

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

Preview Lab → · Contrast checker → · Palette generator →

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