#56271F#56271F

#56271F is a dark, moderate red. Relative luminance 0.035; OKLCH L 33.6% C 0.072 H 31.1°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#56271F
RGBrgb(86, 39, 31)
HSLhsl(9, 47%, 23%)
HSVhsv(9, 64%, 34%)
CMYKcmyk(0%, 54.7%, 64%, 66.3%)
CIE-LABlab(22.05, 20.95, 15.38)
CIE-LCHlch(22.05, 25.99, 36.28°)
OKLaboklab(33.6% 0.0614 0.0371)
OKLCHoklch(33.6% 0.072 31.1)
XYZxyz(4.8110, 3.5289, 1.7239)
Luminance0.0353 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56271F #1F4E56
analogous
#561F32 #56271F #56421F
triadic
#56271F #1F5627 #271F56
tetradic
#56271F #32561F #1F4E56 #421F56
square
#56271F #32561F #1F4E56 #421F56
split-complementary
#56271F #1F5642 #1F3256
monochromatic
#160A08 #29130F #56271F #833B2F #B0503F

Accessibility & contrast

On white

12.31
#56271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#56271F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56271F
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56271F#FFFFFF#000000##FFFFFF
##56271F1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332F1E
Deuteranopia (green-blind)
#3E391E
Tritanopia (blue-blind)
#5E1F25
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #56271f;
/* rgb */ color: rgb(86, 39, 31);
/* oklch */ color: oklch(33.6% 0.072 31.1);
Tailwind
colors: {
  custom: {
    50: '#89625a',
    500: '#56271f',
    950: '#000000',
  },
}
SCSS
$custom: #56271f;
$custom-light: #89625a;
$custom-dark: #000000;
JSON
{
  "hex": "#56271f",
  "rgb": {
    "r": 86,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 8.727,
    "s": 47.009,
    "l": 22.941
  },
  "oklch": {
    "l": 0.33596,
    "c": 0.07169,
    "h": 31.1
  },
  "luminance": 0.03528
}

Semantic roles & 50–950 ramp

primary
#56271F
secondary
#46818B
accent
#C3D751
background
#F8F5F5
surface
#F0EAE9
border
#CBC6C5
text
#0C0504
muted
#7D7979

Preview Lab

Preview with #56271F

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

Preview Lab → · Contrast checker → · Palette generator →

#56271F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva