#52271B#52271B

#52271B is a dark, moderate red. Relative luminance 0.033; OKLCH L 32.9% C 0.068 H 36.5°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#52271B
RGBrgb(82, 39, 27)
HSLhsl(13, 50%, 21%)
HSVhsv(13, 67%, 32%)
CMYKcmyk(0%, 52.4%, 67.1%, 67.8%)
CIE-LABlab(21.30, 18.81, 16.94)
CIE-LCHlch(21.30, 25.31, 42.01°)
OKLaboklab(32.86% 0.0544 0.0403)
OKLCHoklch(32.86% 0.068 36.5)
XYZxyz(4.4034, 3.3245, 1.4465)
Luminance0.0332 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52271B #1B4652
analogous
#521B2B #52271B #52431B
triadic
#52271B #1B5227 #271B52
tetradic
#52271B #2B521B #1B4652 #431B52
square
#52271B #2B521B #1B4652 #431B52
split-complementary
#52271B #1B5243 #1B2B52
monochromatic
#170B08 #24110C #52271B #803D2A #AE5339

Accessibility & contrast

On white

12.61
#52271B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#52271B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52271B
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52271B#FFFFFF#000000##FFFFFF
##52271B1.0012.611.6612.61
#FFFFFF12.611.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322D1A
Deuteranopia (green-blind)
#3D371A
Tritanopia (blue-blind)
#5A1F24
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #52271b;
/* rgb */ color: rgb(82, 39, 27);
/* oklch */ color: oklch(32.9% 0.068 36.5);
Tailwind
colors: {
  custom: {
    50: '#866257',
    500: '#52271b',
    950: '#000000',
  },
}
SCSS
$custom: #52271b;
$custom-light: #866257;
$custom-dark: #000000;
JSON
{
  "hex": "#52271b",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 13.091,
    "s": 50.459,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32864,
    "c": 0.06769,
    "h": 36.5
  },
  "luminance": 0.03324
}

Semantic roles & 50–950 ramp

primary
#52271B
secondary
#417888
accent
#BBDA4E
background
#F8F5F5
surface
#F0EAE9
border
#CBC6C5
text
#0C0503
muted
#7D7978

Preview Lab

Preview with #52271B

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

Preview Lab → · Contrast checker → · Palette generator →

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