#57271B#57271B

#57271B is a dark, moderate red. Relative luminance 0.036; OKLCH L 33.7% C 0.074 H 35.2°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#57271B
RGBrgb(87, 39, 27)
HSLhsl(12, 53%, 22%)
HSVhsv(12, 69%, 34%)
CMYKcmyk(0%, 55.2%, 69%, 65.9%)
CIE-LABlab(22.15, 21.07, 18.18)
CIE-LCHlch(22.15, 27.83, 40.78°)
OKLaboklab(33.68% 0.0608 0.0429)
OKLCHoklch(33.68% 0.074 35.2)
XYZxyz(4.8542, 3.5570, 1.4676)
Luminance0.0356 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57271B #1B4B57
analogous
#571B2D #57271B #57451B
triadic
#57271B #1B5727 #271B57
tetradic
#57271B #2D571B #1B4B57 #451B57
square
#57271B #2D571B #1B4B57 #451B57
split-complementary
#57271B #1B5745 #1B2D57
monochromatic
#170A07 #28120D #57271B #863C29 #B45138

Accessibility & contrast

On white

12.27
#57271B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#57271B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57271B
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57271B#FFFFFF#000000##FFFFFF
##57271B1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332F1A
Deuteranopia (green-blind)
#3F391A
Tritanopia (blue-blind)
#601E24
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #57271b;
/* rgb */ color: rgb(87, 39, 27);
/* oklch */ color: oklch(33.7% 0.074 35.2);
Tailwind
colors: {
  custom: {
    50: '#8a6257',
    500: '#57271b',
    950: '#000000',
  },
}
SCSS
$custom: #57271b;
$custom-light: #8a6257;
$custom-dark: #000000;
JSON
{
  "hex": "#57271b",
  "rgb": {
    "r": 87,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 12,
    "s": 52.632,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33684,
    "c": 0.07442,
    "h": 35.2
  },
  "luminance": 0.03556
}

Semantic roles & 50–950 ramp

primary
#57271B
secondary
#417E8D
accent
#BFDC4C
background
#F8F5F5
surface
#F0EAE9
border
#CBC6C5
text
#0C0503
muted
#7D7978

Preview Lab

Preview with #57271B

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

Preview Lab → · Contrast checker → · Palette generator →

#57271B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva