#5A1F0E#5A1F0E

#5A1F0E is a dark, moderate red. Relative luminance 0.032; OKLCH L 32.7% C 0.091 H 36.5°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#5A1F0E
RGBrgb(90, 31, 14)
HSLhsl(13, 73%, 20%)
HSVhsv(13, 84%, 35%)
CMYKcmyk(0%, 65.6%, 84.4%, 64.7%)
CIE-LABlab(20.77, 26.13, 24.68)
CIE-LCHlch(20.77, 35.95, 43.37°)
OKLaboklab(32.69% 0.0734 0.0544)
OKLCHoklch(32.69% 0.091 36.5)
XYZxyz(4.7862, 3.1860, 0.7783)
Luminance0.0319 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1F0E #0E495A
analogous
#5A0E23 #5A1F0E #5A450E
triadic
#5A1F0E #0E5A1F #1F0E5A
tetradic
#5A1F0E #235A0E #0E495A #450E5A
square
#5A1F0E #235A0E #0E495A #450E5A
split-complementary
#5A1F0E #0E5A45 #0E235A
monochromatic
#1A0904 #250D06 #5A1F0E #8F3116 #C4431E

Accessibility & contrast

On white

12.83
#5A1F0E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5A1F0E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1F0E
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1F0E#FFFFFF#000000##FFFFFF
##5A1F0E1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302A0C
Deuteranopia (green-blind)
#3E370C
Tritanopia (blue-blind)
#64101C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a1f0e;
/* rgb */ color: rgb(90, 31, 14);
/* oklch */ color: oklch(32.7% 0.091 36.5);
Tailwind
colors: {
  custom: {
    50: '#8f5d4e',
    500: '#5a1f0e',
    950: '#000000',
  },
}
SCSS
$custom: #5a1f0e;
$custom-light: #8f5d4e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1f0e",
  "rgb": {
    "r": 90,
    "g": 31,
    "b": 14
  },
  "hsl": {
    "h": 13.421,
    "s": 73.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.32691,
    "c": 0.0913,
    "h": 36.5
  },
  "luminance": 0.03185
}

Semantic roles & 50–950 ramp

primary
#5A1F0E
secondary
#307E94
accent
#C7F038
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0D0401
muted
#7E7977

Preview Lab

Preview with #5A1F0E

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

Preview Lab → · Contrast checker → · Palette generator →

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