#5A131A#5A131A

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

Color values

HEX#5A131A
RGBrgb(90, 19, 26)
HSLhsl(354, 65%, 21%)
HSVhsv(354, 79%, 35%)
CMYKcmyk(0%, 78.9%, 71.1%, 64.7%)
CIE-LABlab(18.86, 32.42, 14.91)
CIE-LCHlch(18.86, 35.68, 24.70°)
OKLaboklab(31.31% 0.0959 0.0353)
OKLCHoklch(31.31% 0.102 20.2)
XYZxyz(4.6363, 2.7147, 1.2569)
Luminance0.0271 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A131A #135A53
analogous
#5A133E #5A131A #5A3013
triadic
#5A131A #1A5A13 #131A5A
tetradic
#5A131A #3E5A13 #135A53 #30135A
square
#5A131A #3E5A13 #135A53 #30135A
split-complementary
#5A131A #135A30 #133E5A
monochromatic
#190507 #27080B #5A131A #8D1E29 #BF2837

Accessibility & contrast

On white

13.61
#5A131A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A131A
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A131A#FFFFFF#000000##FFFFFF
##5A131A1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27241A
Deuteranopia (green-blind)
#393318
Tritanopia (blue-blind)
#630016
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a131a;
/* rgb */ color: rgb(90, 19, 26);
/* oklch */ color: oklch(31.3% 0.102 20.2);
Tailwind
colors: {
  custom: {
    50: '#8e5756',
    500: '#5a131a',
    950: '#000000',
  },
}
SCSS
$custom: #5a131a;
$custom-light: #8e5756;
$custom-dark: #000000;
JSON
{
  "hex": "#5a131a",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 26
  },
  "hsl": {
    "h": 354.085,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31314,
    "c": 0.10215,
    "h": 20.2
  },
  "luminance": 0.02714
}

Semantic roles & 50–950 ramp

primary
#5A131A
secondary
#379289
accent
#E8D840
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0303
muted
#7E7878

Preview Lab

Preview with #5A131A

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

Preview Lab → · Contrast checker → · Palette generator →

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