#5A131E#5A131E

#5A131E is a dark, moderate red. Relative luminance 0.027; OKLCH L 31.4% C 0.102 H 16.9°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#5A131E
RGBrgb(90, 19, 30)
HSLhsl(351, 65%, 21%)
HSVhsv(351, 79%, 35%)
CMYKcmyk(0%, 78.9%, 66.7%, 64.7%)
CIE-LABlab(18.94, 32.69, 12.21)
CIE-LCHlch(18.94, 34.90, 20.48°)
OKLaboklab(31.4% 0.0976 0.0296)
OKLCHoklch(31.4% 0.102 16.9)
XYZxyz(4.6841, 2.7338, 1.5091)
Luminance0.0273 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A131E #135A4F
analogous
#5A1342 #5A131E #5A2C13
triadic
#5A131E #1E5A13 #131E5A
tetradic
#5A131E #425A13 #135A4F #2C135A
square
#5A131E #425A13 #135A4F #2C135A
split-complementary
#5A131E #135A2C #13425A
monochromatic
#190508 #27080D #5A131E #8D1E2F #BF2840

Accessibility & contrast

On white

13.58
#5A131E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#5A131E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A131E
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A131E#FFFFFF#000000##FFFFFF
##5A131E1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26251E
Deuteranopia (green-blind)
#38331C
Tritanopia (blue-blind)
#630018
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a131e;
/* rgb */ color: rgb(90, 19, 30);
/* oklch */ color: oklch(31.4% 0.102 16.9);
Tailwind
colors: {
  custom: {
    50: '#8e5759',
    500: '#5a131e',
    950: '#000000',
  },
}
SCSS
$custom: #5a131e;
$custom-light: #8e5759;
$custom-dark: #000000;
JSON
{
  "hex": "#5a131e",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 30
  },
  "hsl": {
    "h": 350.704,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31401,
    "c": 0.10203,
    "h": 16.9
  },
  "luminance": 0.02733
}

Semantic roles & 50–950 ramp

primary
#5A131E
secondary
#379284
accent
#E8CE40
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0303
muted
#7E7878

Preview Lab

Preview with #5A131E

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

Preview Lab → · Contrast checker → · Palette generator →

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