#52271A#52271A

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

Color values

HEX#52271A
RGBrgb(82, 39, 26)
HSLhsl(14, 52%, 21%)
HSVhsv(14, 68%, 32%)
CMYKcmyk(0%, 52.4%, 68.3%, 67.8%)
CIE-LABlab(21.28, 18.72, 17.57)
CIE-LCHlch(21.28, 25.68, 43.19°)
OKLaboklab(32.85% 0.054 0.0415)
OKLCHoklch(32.85% 0.068 37.6)
XYZxyz(4.3920, 3.3199, 1.3866)
Luminance0.0332 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52271A #1A4552
analogous
#521A29 #52271A #52431A
triadic
#52271A #1A5227 #271A52
tetradic
#52271A #29521A #1A4552 #431A52
square
#52271A #29521A #1A4552 #431A52
split-complementary
#52271A #1A5243 #1A2952
monochromatic
#170B07 #24110B #52271A #803D29 #AF5337

Accessibility & contrast

On white

12.62
#52271A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52271A
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52271A#FFFFFF#000000##FFFFFF
##52271A1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52271a;
/* rgb */ color: rgb(82, 39, 26);
/* oklch */ color: oklch(32.8% 0.068 37.6);
Tailwind
colors: {
  custom: {
    50: '#866256',
    500: '#52271a',
    950: '#000000',
  },
}
SCSS
$custom: #52271a;
$custom-light: #866256;
$custom-dark: #000000;
JSON
{
  "hex": "#52271a",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 26
  },
  "hsl": {
    "h": 13.929,
    "s": 51.852,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32845,
    "c": 0.06811,
    "h": 37.6
  },
  "luminance": 0.03319
}

Semantic roles & 50–950 ramp

primary
#52271A
secondary
#407788
accent
#BADB4C
background
#F8F5F5
surface
#F0EAE9
border
#CBC6C5
text
#0C0503
muted
#7D7978

Preview Lab

Preview with #52271A

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

Preview Lab → · Contrast checker → · Palette generator →

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