#5A2829#5A2829

#5A2829 is a dark, moderate red. Relative luminance 0.039; OKLCH L 34.7% C 0.074 H 20.4°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#5A2829
RGBrgb(90, 40, 41)
HSLhsl(359, 38%, 25%)
HSVhsv(359, 56%, 35%)
CMYKcmyk(0%, 55.6%, 54.4%, 64.7%)
CIE-LABlab(23.18, 23.07, 10.26)
CIE-LCHlch(23.18, 25.25, 23.99°)
OKLaboklab(34.66% 0.0691 0.0258)
OKLCHoklch(34.66% 0.074 20.4)
XYZxyz(5.3759, 3.8519, 2.5578)
Luminance0.0385 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2829 #285A59
analogous
#5A2842 #5A2829 #5A4028
triadic
#5A2829 #295A28 #28295A
tetradic
#5A2829 #425A28 #285A59 #40285A
square
#5A2829 #425A28 #285A59 #40285A
split-complementary
#5A2829 #285A40 #28425A
monochromatic
#15090A #301516 #5A2829 #843B3C #AF4E50

Accessibility & contrast

On white

11.86
#5A2829 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5A2829 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2829
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2829#FFFFFF#000000##FFFFFF
##5A28291.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#333129
Deuteranopia (green-blind)
#403B28
Tritanopia (blue-blind)
#622129
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a2829;
/* rgb */ color: rgb(90, 40, 41);
/* oklch */ color: oklch(34.7% 0.074 20.4);
Tailwind
colors: {
  custom: {
    50: '#8c6362',
    500: '#5a2829',
    950: '#000000',
  },
}
SCSS
$custom: #5a2829;
$custom-light: #8c6362;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2829",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 41
  },
  "hsl": {
    "h": 358.8,
    "s": 38.462,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34658,
    "c": 0.07376,
    "h": 20.4
  },
  "luminance": 0.03851
}

Semantic roles & 50–950 ramp

primary
#5A2829
secondary
#518D8C
accent
#CECC59
background
#F8F6F5
surface
#F0EBEA
border
#CBC6C6
text
#0C0505
muted
#7D7A79

Preview Lab

Preview with #5A2829

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

Preview Lab → · Contrast checker → · Palette generator →

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