#5A0F1A#5A0F1A

#5A0F1A is a dark, moderate red. Relative luminance 0.026; OKLCH L 30.9% C 0.106 H 18.5°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#5A0F1A
RGBrgb(90, 15, 26)
HSLhsl(351, 71%, 21%)
HSVhsv(351, 83%, 35%)
CMYKcmyk(0%, 83.3%, 71.1%, 64.7%)
CIE-LABlab(18.32, 33.92, 14.23)
CIE-LCHlch(18.32, 36.79, 22.75°)
OKLaboklab(30.91% 0.1007 0.0338)
OKLCHoklch(30.91% 0.106 18.5)
XYZxyz(4.5742, 2.5906, 1.2363)
Luminance0.0259 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F1A #0F5A4F
analogous
#5A0F3F #5A0F1A #5A290F
triadic
#5A0F1A #1A5A0F #0F1A5A
tetradic
#5A0F1A #3F5A0F #0F5A4F #290F5A
square
#5A0F1A #3F5A0F #0F5A4F #290F5A
split-complementary
#5A0F1A #0F5A29 #0F3F5A
monochromatic
#1A0408 #26060B #5A0F1A #8E1829 #C32038

Accessibility & contrast

On white

13.83
#5A0F1A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#5A0F1A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F1A
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F1A#FFFFFF#000000##FFFFFF
##5A0F1A1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25231A
Deuteranopia (green-blind)
#383218
Tritanopia (blue-blind)
#640014
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #5a0f1a;
/* rgb */ color: rgb(90, 15, 26);
/* oklch */ color: oklch(30.9% 0.106 18.5);
Tailwind
colors: {
  custom: {
    50: '#8f5556',
    500: '#5a0f1a',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f1a;
$custom-light: #8f5556;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f1a",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 26
  },
  "hsl": {
    "h": 351.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30913,
    "c": 0.10619,
    "h": 18.5
  },
  "luminance": 0.0259
}

Semantic roles & 50–950 ramp

primary
#5A0F1A
secondary
#319485
accent
#EED43A
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0303
muted
#7E7878

Preview Lab

Preview with #5A0F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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