#5A1F10#5A1F10

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

Color values

HEX#5A1F10
RGBrgb(90, 31, 16)
HSLhsl(12, 70%, 21%)
HSVhsv(12, 82%, 35%)
CMYKcmyk(0%, 65.6%, 82.2%, 64.7%)
CIE-LABlab(20.80, 26.22, 23.65)
CIE-LCHlch(20.80, 35.31, 42.05°)
OKLaboklab(32.71% 0.0741 0.0525)
OKLCHoklch(32.71% 0.091 35.3)
XYZxyz(4.8005, 3.1917, 0.8534)
Luminance0.0319 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1F10 #104B5A
analogous
#5A1026 #5A1F10 #5A4410
triadic
#5A1F10 #105A1F #1F105A
tetradic
#5A1F10 #265A10 #104B5A #44105A
square
#5A1F10 #265A10 #104B5A #44105A
split-complementary
#5A1F10 #105A44 #10265A
monochromatic
#1A0905 #260D07 #5A1F10 #8E3119 #C24322

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A1F10#FFFFFF#000000##FFFFFF
##5A1F101.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)
#2F2A0E
Deuteranopia (green-blind)
#3E370E
Tritanopia (blue-blind)
#64111C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a1f10;
/* rgb */ color: rgb(90, 31, 16);
/* oklch */ color: oklch(32.7% 0.091 35.3);
Tailwind
colors: {
  custom: {
    50: '#8e5d4f',
    500: '#5a1f10',
    950: '#000000',
  },
}
SCSS
$custom: #5a1f10;
$custom-light: #8e5d4f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1f10",
  "rgb": {
    "r": 90,
    "g": 31,
    "b": 16
  },
  "hsl": {
    "h": 12.162,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32715,
    "c": 0.09074,
    "h": 35.3
  },
  "luminance": 0.03191
}

Semantic roles & 50–950 ramp

primary
#5A1F10
secondary
#338093
accent
#C9ED3B
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0D0402
muted
#7E7978

Preview Lab

Preview with #5A1F10

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

Preview Lab → · Contrast checker → · Palette generator →

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