#5A1F0F#5A1F0F

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

Color values

HEX#5A1F0F
RGBrgb(90, 31, 15)
HSLhsl(13, 71%, 21%)
HSVhsv(13, 83%, 35%)
CMYKcmyk(0%, 65.6%, 83.3%, 64.7%)
CIE-LABlab(20.78, 26.17, 24.18)
CIE-LCHlch(20.78, 35.63, 42.73°)
OKLaboklab(32.7% 0.0737 0.0534)
OKLCHoklch(32.7% 0.091 35.9)
XYZxyz(4.7932, 3.1888, 0.8149)
Luminance0.0319 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1F0F #0F4A5A
analogous
#5A0F24 #5A1F0F #5A440F
triadic
#5A1F0F #0F5A1F #1F0F5A
tetradic
#5A1F0F #245A0F #0F4A5A #440F5A
square
#5A1F0F #245A0F #0F4A5A #440F5A
split-complementary
#5A1F0F #0F5A44 #0F245A
monochromatic
#1A0904 #260D06 #5A1F0F #8E3118 #C34320

Accessibility & contrast

On white

12.82
#5A1F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1F0F
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1F0F#FFFFFF#000000##FFFFFF
##5A1F0F1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302A0D
Deuteranopia (green-blind)
#3E370D
Tritanopia (blue-blind)
#64111C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a1f0f;
/* rgb */ color: rgb(90, 31, 15);
/* oklch */ color: oklch(32.7% 0.091 35.9);
Tailwind
colors: {
  custom: {
    50: '#8f5d4e',
    500: '#5a1f0f',
    950: '#000000',
  },
}
SCSS
$custom: #5a1f0f;
$custom-light: #8f5d4e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1f0f",
  "rgb": {
    "r": 90,
    "g": 31,
    "b": 15
  },
  "hsl": {
    "h": 12.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32703,
    "c": 0.09102,
    "h": 35.9
  },
  "luminance": 0.03188
}

Semantic roles & 50–950 ramp

primary
#5A1F0F
secondary
#317F94
accent
#C8EE3A
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0D0401
muted
#7E7977

Preview Lab

Preview with #5A1F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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