#5A1827#5A1827

#5A1827 is a dark, moderate red. Relative luminance 0.030; OKLCH L 32.2% C 0.097 H 10.9°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#5A1827
RGBrgb(90, 24, 39)
HSLhsl(346, 58%, 22%)
HSVhsv(346, 73%, 35%)
CMYKcmyk(0%, 73.3%, 56.7%, 64.7%)
CIE-LABlab(19.94, 31.30, 7.21)
CIE-LCHlch(19.94, 32.12, 12.97°)
OKLaboklab(32.21% 0.0948 0.0183)
OKLCHoklch(32.21% 0.097 10.9)
XYZxyz(4.9097, 2.9741, 2.2346)
Luminance0.0297 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1827 #185A4B
analogous
#5A1848 #5A1827 #5A2A18
triadic
#5A1827 #275A18 #18275A
tetradic
#5A1827 #485A18 #185A4B #2A185A
square
#5A1827 #485A18 #185A4B #2A185A
split-complementary
#5A1827 #185A2A #18485A
monochromatic
#18060A #2A0B12 #5A1827 #8A253C #BB3251

Accessibility & contrast

On white

13.17
#5A1827 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#5A1827 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1827
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1827#FFFFFF#000000##FFFFFF
##5A18271.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282827
Deuteranopia (green-blind)
#393525
Tritanopia (blue-blind)
#630B1E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a1827;
/* rgb */ color: rgb(90, 24, 39);
/* oklch */ color: oklch(32.2% 0.097 10.9);
Tailwind
colors: {
  custom: {
    50: '#8d5a60',
    500: '#5a1827',
    950: '#000000',
  },
}
SCSS
$custom: #5a1827;
$custom-light: #8d5a60;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1827",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 39
  },
  "hsl": {
    "h": 346.364,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32212,
    "c": 0.09657,
    "h": 10.9
  },
  "luminance": 0.02973
}

Semantic roles & 50–950 ramp

primary
#5A1827
secondary
#3D917E
accent
#E1BE47
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0405
muted
#7E7979

Preview Lab

Preview with #5A1827

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

Preview Lab → · Contrast checker → · Palette generator →

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