#5A1B0F#5A1B0F

#5A1B0F is a dark, moderate red. Relative luminance 0.030; OKLCH L 32.1% C 0.095 H 32.9°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#5A1B0F
RGBrgb(90, 27, 15)
HSLhsl(10, 71%, 21%)
HSVhsv(10, 83%, 35%)
CMYKcmyk(0%, 70%, 83.3%, 64.7%)
CIE-LABlab(20.01, 28.22, 23.32)
CIE-LCHlch(20.01, 36.61, 39.56°)
OKLaboklab(32.12% 0.0801 0.0517)
OKLCHoklch(32.12% 0.095 32.9)
XYZxyz(4.6951, 2.9927, 0.7823)
Luminance0.0299 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1B0F #0F4E5A
analogous
#5A0F28 #5A1B0F #5A400F
triadic
#5A1B0F #0F5A1B #1B0F5A
tetradic
#5A1B0F #285A0F #0F4E5A #400F5A
square
#5A1B0F #285A0F #0F4E5A #400F5A
split-complementary
#5A1B0F #0F5A40 #0F285A
monochromatic
#1A0804 #260B06 #5A1B0F #8E2B18 #C33A20

Accessibility & contrast

On white

13.14
#5A1B0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#5A1B0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1B0F
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1B0F#FFFFFF#000000##FFFFFF
##5A1B0F1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D280D
Deuteranopia (green-blind)
#3C350D
Tritanopia (blue-blind)
#640A19
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a1b0f;
/* rgb */ color: rgb(90, 27, 15);
/* oklch */ color: oklch(32.1% 0.095 32.9);
Tailwind
colors: {
  custom: {
    50: '#8f5b4e',
    500: '#5a1b0f',
    950: '#000000',
  },
}
SCSS
$custom: #5a1b0f;
$custom-light: #8f5b4e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1b0f",
  "rgb": {
    "r": 90,
    "g": 27,
    "b": 15
  },
  "hsl": {
    "h": 9.6,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32122,
    "c": 0.09529,
    "h": 32.9
  },
  "luminance": 0.02992
}

Semantic roles & 50–950 ramp

primary
#5A1B0F
secondary
#318494
accent
#D1EE3A
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0401
muted
#7E7977

Preview Lab

Preview with #5A1B0F

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

Preview Lab → · Contrast checker → · Palette generator →

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