#5A0F1F#5A0F1F

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

Color values

HEX#5A0F1F
RGBrgb(90, 15, 31)
HSLhsl(347, 71%, 21%)
HSVhsv(347, 83%, 35%)
CMYKcmyk(0%, 83.3%, 65.6%, 64.7%)
CIE-LABlab(18.43, 34.27, 10.82)
CIE-LCHlch(18.43, 35.93, 17.53°)
OKLaboklab(31.03% 0.1029 0.0265)
OKLCHoklch(31.03% 0.106 14.4)
XYZxyz(4.6351, 2.6149, 1.5567)
Luminance0.0261 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F1F #0F5A4A
analogous
#5A0F44 #5A0F1F #5A240F
triadic
#5A0F1F #1F5A0F #0F1F5A
tetradic
#5A0F1F #445A0F #0F5A4A #240F5A
square
#5A0F1F #445A0F #0F5A4A #240F5A
split-complementary
#5A0F1F #0F5A24 #0F445A
monochromatic
#1A0409 #26060D #5A0F1F #8E1831 #C32043

Accessibility & contrast

On white

13.79
#5A0F1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0F1F
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F1F#FFFFFF#000000##FFFFFF
##5A0F1F1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24231F
Deuteranopia (green-blind)
#37331D
Tritanopia (blue-blind)
#630016
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #5a0f1f;
/* rgb */ color: rgb(90, 15, 31);
/* oklch */ color: oklch(31.0% 0.106 14.4);
Tailwind
colors: {
  custom: {
    50: '#8e565a',
    500: '#5a0f1f',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f1f;
$custom-light: #8e565a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f1f",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 31
  },
  "hsl": {
    "h": 347.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31027,
    "c": 0.10626,
    "h": 14.4
  },
  "luminance": 0.02614
}

Semantic roles & 50–950 ramp

primary
#5A0F1F
secondary
#31947F
accent
#EEC83A
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0303
muted
#7E7878

Preview Lab

Preview with #5A0F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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