#5A1312#5A1312

#5A1312 is a dark, moderate red. Relative luminance 0.027; OKLCH L 31.2% C 0.103 H 26.1°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#5A1312
RGBrgb(90, 19, 18)
HSLhsl(1, 67%, 21%)
HSVhsv(1, 80%, 35%)
CMYKcmyk(0%, 78.9%, 80%, 64.7%)
CIE-LABlab(18.73, 31.97, 20.13)
CIE-LCHlch(18.73, 37.78, 32.20°)
OKLaboklab(31.17% 0.0925 0.0454)
OKLCHoklch(31.17% 0.103 26.1)
XYZxyz(4.5590, 2.6838, 0.8501)
Luminance0.0268 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1312 #12595A
analogous
#5A1235 #5A1312 #5A3712
triadic
#5A1312 #125A13 #13125A
tetradic
#5A1312 #355A12 #12595A #37125A
square
#5A1312 #355A12 #12595A #37125A
split-complementary
#5A1312 #125A37 #12355A
monochromatic
#1A0505 #270808 #5A1312 #8D1E1C #C02926

Accessibility & contrast

On white

13.67
#5A1312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#5A1312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1312
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1312#FFFFFF#000000##FFFFFF
##5A13121.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282411
Deuteranopia (green-blind)
#3A330F
Tritanopia (blue-blind)
#640014
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a1312;
/* rgb */ color: rgb(90, 19, 18);
/* oklch */ color: oklch(31.2% 0.103 26.1);
Tailwind
colors: {
  custom: {
    50: '#8f5750',
    500: '#5a1312',
    950: '#000000',
  },
}
SCSS
$custom: #5a1312;
$custom-light: #8f5750;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1312",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 18
  },
  "hsl": {
    "h": 0.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31172,
    "c": 0.10302,
    "h": 26.1
  },
  "luminance": 0.02683
}

Semantic roles & 50–950 ramp

primary
#5A1312
secondary
#359193
accent
#E7EA3E
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0302
muted
#7E7878

Preview Lab

Preview with #5A1312

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

Preview Lab → · Contrast checker → · Palette generator →

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