#5F271F#5F271F

#5F271F is a dark, moderate red. Relative luminance 0.040; OKLCH L 35.1% C 0.084 H 30.1°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#5F271F
RGBrgb(95, 39, 31)
HSLhsl(8, 51%, 25%)
HSVhsv(8, 67%, 37%)
CMYKcmyk(0%, 58.9%, 67.4%, 62.7%)
CIE-LABlab(23.62, 24.86, 17.69)
CIE-LCHlch(23.62, 30.51, 35.43°)
OKLaboklab(35.1% 0.0725 0.042)
OKLCHoklch(35.1% 0.084 30.1)
XYZxyz(5.6927, 3.9836, 1.7652)
Luminance0.0398 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F271F #1F575F
analogous
#5F1F37 #5F271F #5F471F
triadic
#5F271F #1F5F27 #271F5F
tetradic
#5F271F #375F1F #1F575F #471F5F
square
#5F271F #375F1F #1F575F #471F5F
split-complementary
#5F271F #1F5F47 #1F375F
monochromatic
#170908 #311410 #5F271F #8D3A2E #BB4D3D

Accessibility & contrast

On white

11.69
#5F271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5F271F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F271F
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F271F#FFFFFF#000000##FFFFFF
##5F271F1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35311E
Deuteranopia (green-blind)
#433D1E
Tritanopia (blue-blind)
#681C25
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f271f;
/* rgb */ color: rgb(95, 39, 31);
/* oklch */ color: oklch(35.1% 0.084 30.1);
Tailwind
colors: {
  custom: {
    50: '#91635a',
    500: '#5f271f',
    950: '#000000',
  },
}
SCSS
$custom: #5f271f;
$custom-light: #91635a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f271f",
  "rgb": {
    "r": 95,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 7.5,
    "s": 50.794,
    "l": 24.706
  },
  "oklch": {
    "l": 0.35099,
    "c": 0.08376,
    "h": 30.1
  },
  "luminance": 0.03983
}

Semantic roles & 50–950 ramp

primary
#5F271F
secondary
#468A94
accent
#C9DA4E
background
#F9F6F5
surface
#F2EBE9
border
#CCC6C5
text
#0D0504
muted
#7E7A79

Preview Lab

Preview with #5F271F

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

Preview Lab → · Contrast checker → · Palette generator →

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