#5A0F1B#5A0F1B

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

Color values

HEX#5A0F1B
RGBrgb(90, 15, 27)
HSLhsl(350, 71%, 21%)
HSVhsv(350, 83%, 35%)
CMYKcmyk(0%, 83.3%, 70%, 64.7%)
CIE-LABlab(18.34, 33.99, 13.55)
CIE-LCHlch(18.34, 36.59, 21.73°)
OKLaboklab(30.94% 0.1011 0.0323)
OKLCHoklch(30.94% 0.106 17.7)
XYZxyz(4.5856, 2.5951, 1.2962)
Luminance0.0259 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F1B #0F5A4E
analogous
#5A0F40 #5A0F1B #5A280F
triadic
#5A0F1B #1B5A0F #0F1B5A
tetradic
#5A0F1B #405A0F #0F5A4E #280F5A
square
#5A0F1B #405A0F #0F5A4E #280F5A
split-complementary
#5A0F1B #0F5A28 #0F405A
monochromatic
#1A0408 #26060B #5A0F1B #8E182B #C3203A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A0F1B#FFFFFF#000000##FFFFFF
##5A0F1B1.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)
#25231B
Deuteranopia (green-blind)
#383219
Tritanopia (blue-blind)
#630014
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #5a0f1b;
/* rgb */ color: rgb(90, 15, 27);
/* oklch */ color: oklch(30.9% 0.106 17.7);
Tailwind
colors: {
  custom: {
    50: '#8f5557',
    500: '#5a0f1b',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f1b;
$custom-light: #8f5557;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f1b",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 27
  },
  "hsl": {
    "h": 350.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30935,
    "c": 0.10617,
    "h": 17.7
  },
  "luminance": 0.02594
}

Semantic roles & 50–950 ramp

primary
#5A0F1B
secondary
#319484
accent
#EED13A
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0303
muted
#7E7878

Preview Lab

Preview with #5A0F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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