#5A131B#5A131B

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

Color values

HEX#5A131B
RGBrgb(90, 19, 27)
HSLhsl(353, 65%, 21%)
HSVhsv(353, 79%, 35%)
CMYKcmyk(0%, 78.9%, 70%, 64.7%)
CIE-LABlab(18.88, 32.48, 14.23)
CIE-LCHlch(18.88, 35.47, 23.66°)
OKLaboklab(31.34% 0.0963 0.0339)
OKLCHoklch(31.34% 0.102 19.4)
XYZxyz(4.6476, 2.7192, 1.3168)
Luminance0.0272 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A131B #135A52
analogous
#5A133F #5A131B #5A2F13
triadic
#5A131B #1B5A13 #131B5A
tetradic
#5A131B #3F5A13 #135A52 #2F135A
square
#5A131B #3F5A13 #135A52 #2F135A
split-complementary
#5A131B #135A2F #133F5A
monochromatic
#190508 #27080C #5A131B #8D1E2A #BF2839

Accessibility & contrast

On white

13.60
#5A131B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A131B
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A131B#FFFFFF#000000##FFFFFF
##5A131B1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27241B
Deuteranopia (green-blind)
#393319
Tritanopia (blue-blind)
#630017
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a131b;
/* rgb */ color: rgb(90, 19, 27);
/* oklch */ color: oklch(31.3% 0.102 19.4);
Tailwind
colors: {
  custom: {
    50: '#8e5757',
    500: '#5a131b',
    950: '#000000',
  },
}
SCSS
$custom: #5a131b;
$custom-light: #8e5757;
$custom-dark: #000000;
JSON
{
  "hex": "#5a131b",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 27
  },
  "hsl": {
    "h": 353.239,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31335,
    "c": 0.1021,
    "h": 19.4
  },
  "luminance": 0.02719
}

Semantic roles & 50–950 ramp

primary
#5A131B
secondary
#379288
accent
#E8D540
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0303
muted
#7E7878

Preview Lab

Preview with #5A131B

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

Preview Lab → · Contrast checker → · Palette generator →

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