#5F271C#5F271C

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

Color values

HEX#5F271C
RGBrgb(95, 39, 28)
HSLhsl(10, 54%, 24%)
HSVhsv(10, 71%, 37%)
CMYKcmyk(0%, 58.9%, 70.5%, 62.7%)
CIE-LABlab(23.57, 24.65, 19.57)
CIE-LCHlch(23.57, 31.47, 38.46°)
OKLaboklab(35.04% 0.0712 0.0458)
OKLCHoklch(35.04% 0.085 32.8)
XYZxyz(5.6550, 3.9685, 1.5666)
Luminance0.0397 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F271C #1C545F
analogous
#5F1C33 #5F271C #5F491C
triadic
#5F271C #1C5F27 #271C5F
tetradic
#5F271C #335F1C #1C545F #491C5F
square
#5F271C #335F1C #1C545F #491C5F
split-complementary
#5F271C #1C5F49 #1C335F
monochromatic
#180A07 #30140E #5F271C #8E3A2A #BE4E38

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F271C#FFFFFF#000000##FFFFFF
##5F271C1.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)
#36311B
Deuteranopia (green-blind)
#433D1B
Tritanopia (blue-blind)
#691C25
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f271c;
/* rgb */ color: rgb(95, 39, 28);
/* oklch */ color: oklch(35.0% 0.085 32.8);
Tailwind
colors: {
  custom: {
    50: '#916358',
    500: '#5f271c',
    950: '#000000',
  },
}
SCSS
$custom: #5f271c;
$custom-light: #916358;
$custom-dark: #000000;
JSON
{
  "hex": "#5f271c",
  "rgb": {
    "r": 95,
    "g": 39,
    "b": 28
  },
  "hsl": {
    "h": 9.851,
    "s": 54.472,
    "l": 24.118
  },
  "oklch": {
    "l": 0.35044,
    "c": 0.08462,
    "h": 32.8
  },
  "luminance": 0.03968
}

Semantic roles & 50–950 ramp

primary
#5F271C
secondary
#428794
accent
#C6DE4A
background
#F9F5F5
surface
#F2EAE9
border
#CCC6C5
text
#0D0503
muted
#7E7978

Preview Lab

Preview with #5F271C

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

Preview Lab → · Contrast checker → · Palette generator →

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