#5D271F#5D271F

#5D271F is a dark, moderate red. Relative luminance 0.039; OKLCH L 34.8% C 0.081 H 30.3°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#5D271F
RGBrgb(93, 39, 31)
HSLhsl(8, 50%, 24%)
HSVhsv(8, 67%, 36%)
CMYKcmyk(0%, 58.1%, 66.7%, 63.5%)
CIE-LABlab(23.26, 24.01, 17.17)
CIE-LCHlch(23.26, 29.52, 35.57°)
OKLaboklab(34.76% 0.07 0.0409)
OKLCHoklch(34.76% 0.081 30.3)
XYZxyz(5.4875, 3.8778, 1.7556)
Luminance0.0388 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D271F #1F555D
analogous
#5D1F36 #5D271F #5D461F
triadic
#5D271F #1F5D27 #271F5D
tetradic
#5D271F #365D1F #1F555D #461F5D
square
#5D271F #365D1F #1F555D #461F5D
split-complementary
#5D271F #1F5D46 #1F365D
monochromatic
#170A08 #2F1410 #5D271F #8B3A2E #B94D3E

Accessibility & contrast

On white

11.83
#5D271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5D271F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D271F
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D271F#FFFFFF#000000##FFFFFF
##5D271F1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35301E
Deuteranopia (green-blind)
#423C1E
Tritanopia (blue-blind)
#661D25
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5d271f;
/* rgb */ color: rgb(93, 39, 31);
/* oklch */ color: oklch(34.8% 0.081 30.3);
Tailwind
colors: {
  custom: {
    50: '#8f635a',
    500: '#5d271f',
    950: '#000000',
  },
}
SCSS
$custom: #5d271f;
$custom-light: #8f635a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d271f",
  "rgb": {
    "r": 93,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 7.742,
    "s": 50,
    "l": 24.314
  },
  "oklch": {
    "l": 0.34761,
    "c": 0.08111,
    "h": 30.3
  },
  "luminance": 0.03877
}

Semantic roles & 50–950 ramp

primary
#5D271F
secondary
#468892
accent
#C8DA4E
background
#F9F5F5
surface
#F1EAE9
border
#CBC6C5
text
#0D0504
muted
#7E7979

Preview Lab

Preview with #5D271F

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

Preview Lab → · Contrast checker → · Palette generator →

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