#5A271E#5A271E

#5A271E is a dark, moderate red. Relative luminance 0.037; OKLCH L 34.2% C 0.077 H 31.6°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#5A271E
RGBrgb(90, 39, 30)
HSLhsl(9, 50%, 24%)
HSVhsv(9, 67%, 35%)
CMYKcmyk(0%, 56.7%, 66.7%, 64.7%)
CIE-LABlab(22.72, 22.63, 17.03)
CIE-LCHlch(22.72, 28.33, 36.97°)
OKLaboklab(34.24% 0.0659 0.0406)
OKLCHoklch(34.24% 0.077 31.6)
XYZxyz(5.1768, 3.7191, 1.6733)
Luminance0.0372 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A271E #1E515A
analogous
#5A1E33 #5A271E #5A451E
triadic
#5A271E #1E5A27 #271E5A
tetradic
#5A271E #335A1E #1E515A #451E5A
square
#5A271E #335A1E #1E515A #451E5A
split-complementary
#5A271E #1E5A45 #1E335A
monochromatic
#170A08 #2C130F #5A271E #883B2D #B64F3D

Accessibility & contrast

On white

12.04
#5A271E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5A271E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A271E
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A271E#FFFFFF#000000##FFFFFF
##5A271E1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342F1D
Deuteranopia (green-blind)
#403A1D
Tritanopia (blue-blind)
#631E25
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a271e;
/* rgb */ color: rgb(90, 39, 30);
/* oklch */ color: oklch(34.2% 0.077 31.6);
Tailwind
colors: {
  custom: {
    50: '#8d635a',
    500: '#5a271e',
    950: '#000000',
  },
}
SCSS
$custom: #5a271e;
$custom-light: #8d635a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a271e",
  "rgb": {
    "r": 90,
    "g": 39,
    "b": 30
  },
  "hsl": {
    "h": 9,
    "s": 50,
    "l": 23.529
  },
  "oklch": {
    "l": 0.34238,
    "c": 0.07741,
    "h": 31.6
  },
  "luminance": 0.03718
}

Semantic roles & 50–950 ramp

primary
#5A271E
secondary
#45848F
accent
#C5DA4E
background
#F9F5F5
surface
#F1EAE9
border
#CBC6C5
text
#0D0503
muted
#7E7978

Preview Lab

Preview with #5A271E

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

Preview Lab → · Contrast checker → · Palette generator →

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