#5F271E#5F271E

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

Color values

HEX#5F271E
RGBrgb(95, 39, 30)
HSLhsl(8, 52%, 25%)
HSVhsv(8, 68%, 37%)
CMYKcmyk(0%, 58.9%, 68.4%, 62.7%)
CIE-LABlab(23.60, 24.79, 18.32)
CIE-LCHlch(23.60, 30.82, 36.46°)
OKLaboklab(35.08% 0.072 0.0433)
OKLCHoklch(35.08% 0.084 31)
XYZxyz(5.6797, 3.9784, 1.6969)
Luminance0.0398 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F271E #1E565F
analogous
#5F1E36 #5F271E #5F481E
triadic
#5F271E #1E5F27 #271E5F
tetradic
#5F271E #365F1E #1E565F #481E5F
square
#5F271E #365F1E #1E565F #481E5F
split-complementary
#5F271E #1E5F48 #1E365F
monochromatic
#170A07 #30140F #5F271E #8E3A2D #BC4D3B

Accessibility & contrast

On white

11.70
#5F271E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F271E
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F271E#FFFFFF#000000##FFFFFF
##5F271E1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f271e;
/* rgb */ color: rgb(95, 39, 30);
/* oklch */ color: oklch(35.1% 0.084 31.0);
Tailwind
colors: {
  custom: {
    50: '#91635a',
    500: '#5f271e',
    950: '#000000',
  },
}
SCSS
$custom: #5f271e;
$custom-light: #91635a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f271e",
  "rgb": {
    "r": 95,
    "g": 39,
    "b": 30
  },
  "hsl": {
    "h": 8.308,
    "s": 52,
    "l": 24.51
  },
  "oklch": {
    "l": 0.3508,
    "c": 0.08404,
    "h": 31
  },
  "luminance": 0.03978
}

Semantic roles & 50–950 ramp

primary
#5F271E
secondary
#458994
accent
#C8DB4C
background
#F9F6F5
surface
#F2EBE9
border
#CCC6C5
text
#0D0503
muted
#7E7A78

Preview Lab

Preview with #5F271E

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

Preview Lab → · Contrast checker → · Palette generator →

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