#5F271B#5F271B

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

Color values

HEX#5F271B
RGBrgb(95, 39, 27)
HSLhsl(11, 56%, 24%)
HSVhsv(11, 72%, 37%)
CMYKcmyk(0%, 58.9%, 71.6%, 62.7%)
CIE-LABlab(23.55, 24.58, 20.20)
CIE-LCHlch(23.55, 31.81, 39.41°)
OKLaboklab(35.03% 0.0707 0.047)
OKLCHoklch(35.03% 0.085 33.6)
XYZxyz(5.6432, 3.9638, 1.5046)
Luminance0.0396 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F271B #1B535F
analogous
#5F1B31 #5F271B #5F491B
triadic
#5F271B #1B5F27 #271B5F
tetradic
#5F271B #315F1B #1B535F #491B5F
square
#5F271B #315F1B #1B535F #491B5F
split-complementary
#5F271B #1B5F49 #1B315F
monochromatic
#180A07 #2F130D #5F271B #8F3B29 #BE4E36

Accessibility & contrast

On white

11.71
#5F271B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F271B
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F271B#FFFFFF#000000##FFFFFF
##5F271B1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36311A
Deuteranopia (green-blind)
#443D1A
Tritanopia (blue-blind)
#691C24
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f271b;
/* rgb */ color: rgb(95, 39, 27);
/* oklch */ color: oklch(35.0% 0.085 33.6);
Tailwind
colors: {
  custom: {
    50: '#916357',
    500: '#5f271b',
    950: '#000000',
  },
}
SCSS
$custom: #5f271b;
$custom-light: #916357;
$custom-dark: #000000;
JSON
{
  "hex": "#5f271b",
  "rgb": {
    "r": 95,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 10.588,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.35028,
    "c": 0.08494,
    "h": 33.6
  },
  "luminance": 0.03963
}

Semantic roles & 50–950 ramp

primary
#5F271B
secondary
#418695
accent
#C5DF49
background
#F9F5F5
surface
#F2EAE9
border
#CCC6C5
text
#0E0503
muted
#7E7978

Preview Lab

Preview with #5F271B

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

Preview Lab → · Contrast checker → · Palette generator →

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