#5F271A#5F271A

#5F271A is a dark, moderate red. Relative luminance 0.040; OKLCH L 35.0% C 0.085 H 34.4°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#5F271A
RGBrgb(95, 39, 26)
HSLhsl(11, 57%, 24%)
HSVhsv(11, 73%, 37%)
CMYKcmyk(0%, 58.9%, 72.6%, 62.7%)
CIE-LABlab(23.54, 24.51, 20.82)
CIE-LCHlch(23.54, 32.16, 40.34°)
OKLaboklab(35.01% 0.0703 0.0482)
OKLCHoklch(35.01% 0.085 34.4)
XYZxyz(5.6318, 3.9592, 1.4447)
Luminance0.0396 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F271A #1A525F
analogous
#5F1A2F #5F271A #5F491A
triadic
#5F271A #1A5F27 #271A5F
tetradic
#5F271A #2F5F1A #1A525F #491A5F
square
#5F271A #2F5F1A #1A525F #491A5F
split-complementary
#5F271A #1A5F49 #1A2F5F
monochromatic
#180A07 #2F130D #5F271A #8F3B27 #BF4E34

Accessibility & contrast

On white

11.72
#5F271A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5F271A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F271A
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F271A#FFFFFF#000000##FFFFFF
##5F271A1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363019
Deuteranopia (green-blind)
#443D19
Tritanopia (blue-blind)
#691C24
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f271a;
/* rgb */ color: rgb(95, 39, 26);
/* oklch */ color: oklch(35.0% 0.085 34.4);
Tailwind
colors: {
  custom: {
    50: '#916357',
    500: '#5f271a',
    950: '#000000',
  },
}
SCSS
$custom: #5f271a;
$custom-light: #916357;
$custom-dark: #000000;
JSON
{
  "hex": "#5f271a",
  "rgb": {
    "r": 95,
    "g": 39,
    "b": 26
  },
  "hsl": {
    "h": 11.304,
    "s": 57.025,
    "l": 23.725
  },
  "oklch": {
    "l": 0.35011,
    "c": 0.08525,
    "h": 34.4
  },
  "luminance": 0.03959
}

Semantic roles & 50–950 ramp

primary
#5F271A
secondary
#408595
accent
#C4E048
background
#F9F5F5
surface
#F2EAE9
border
#CCC6C5
text
#0E0503
muted
#7E7978

Preview Lab

Preview with #5F271A

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

Preview Lab → · Contrast checker → · Palette generator →

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