#5B2128#5B2128

#5B2128 is a dark, moderate red. Relative luminance 0.035; OKLCH L 33.7% C 0.085 H 15.6°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#5B2128
RGBrgb(91, 33, 40)
HSLhsl(353, 47%, 24%)
HSVhsv(353, 64%, 36%)
CMYKcmyk(0%, 63.7%, 56%, 64.3%)
CIE-LABlab(21.82, 27.30, 9.13)
CIE-LCHlch(21.82, 28.79, 18.49°)
OKLaboklab(33.66% 0.0822 0.023)
OKLCHoklch(33.66% 0.085 15.6)
XYZxyz(5.2417, 3.4657, 2.4000)
Luminance0.0347 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2128 #215B54
analogous
#5B2145 #5B2128 #5B3721
triadic
#5B2128 #285B21 #21285B
tetradic
#5B2128 #455B21 #215B54 #37215B
square
#5B2128 #455B21 #215B54 #37215B
split-complementary
#5B2128 #215B37 #21455B
monochromatic
#16080A #2E1114 #5B2128 #88313C #B5424F

Accessibility & contrast

On white

12.40
#5B2128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5B2128 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2128
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2128#FFFFFF#000000##FFFFFF
##5B21281.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2D28
Deuteranopia (green-blind)
#3D3927
Tritanopia (blue-blind)
#641824
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b2128;
/* rgb */ color: rgb(91, 33, 40);
/* oklch */ color: oklch(33.7% 0.085 15.6);
Tailwind
colors: {
  custom: {
    50: '#8d5f61',
    500: '#5b2128',
    950: '#000000',
  },
}
SCSS
$custom: #5b2128;
$custom-light: #8d5f61;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2128",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 40
  },
  "hsl": {
    "h": 352.759,
    "s": 46.774,
    "l": 24.314
  },
  "oklch": {
    "l": 0.33662,
    "c": 0.08531,
    "h": 15.6
  },
  "luminance": 0.03465
}

Semantic roles & 50–950 ramp

primary
#5B2128
secondary
#498F87
accent
#D6C651
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0505
muted
#7E7979

Preview Lab

Preview with #5B2128

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

Preview Lab → · Contrast checker → · Palette generator →

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