#5A1D0F#5A1D0F

#5A1D0F is a dark, moderate red. Relative luminance 0.031; OKLCH L 32.4% C 0.093 H 34.3°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#5A1D0F
RGBrgb(90, 29, 15)
HSLhsl(11, 71%, 21%)
HSVhsv(11, 83%, 35%)
CMYKcmyk(0%, 67.8%, 83.3%, 64.7%)
CIE-LABlab(20.39, 27.22, 23.74)
CIE-LCHlch(20.39, 36.12, 41.10°)
OKLaboklab(32.41% 0.0769 0.0525)
OKLCHoklch(32.41% 0.093 34.3)
XYZxyz(4.7426, 3.0876, 0.7981)
Luminance0.0309 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1D0F #0F4C5A
analogous
#5A0F26 #5A1D0F #5A420F
triadic
#5A1D0F #0F5A1D #1D0F5A
tetradic
#5A1D0F #265A0F #0F4C5A #420F5A
square
#5A1D0F #265A0F #0F4C5A #420F5A
split-complementary
#5A1D0F #0F5A42 #0F265A
monochromatic
#1A0804 #260C06 #5A1D0F #8E2E18 #C33F20

Accessibility & contrast

On white

12.98
#5A1D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5A1D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1D0F
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1D0F#FFFFFF#000000##FFFFFF
##5A1D0F1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E290D
Deuteranopia (green-blind)
#3D360D
Tritanopia (blue-blind)
#640D1A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a1d0f;
/* rgb */ color: rgb(90, 29, 15);
/* oklch */ color: oklch(32.4% 0.093 34.3);
Tailwind
colors: {
  custom: {
    50: '#8f5c4e',
    500: '#5a1d0f',
    950: '#000000',
  },
}
SCSS
$custom: #5a1d0f;
$custom-light: #8f5c4e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1d0f",
  "rgb": {
    "r": 90,
    "g": 29,
    "b": 15
  },
  "hsl": {
    "h": 11.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32406,
    "c": 0.09316,
    "h": 34.3
  },
  "luminance": 0.03087
}

Semantic roles & 50–950 ramp

primary
#5A1D0F
secondary
#318194
accent
#CCEE3A
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0D0401
muted
#7E7977

Preview Lab

Preview with #5A1D0F

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

Preview Lab → · Contrast checker → · Palette generator →

#5A1D0F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva