#52271D#52271D

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

Color values

HEX#52271D
RGBrgb(82, 39, 29)
HSLhsl(11, 48%, 22%)
HSVhsv(11, 65%, 32%)
CMYKcmyk(0%, 52.4%, 64.6%, 67.8%)
CIE-LABlab(21.34, 18.98, 15.67)
CIE-LCHlch(21.34, 24.61, 39.54°)
OKLaboklab(32.9% 0.0553 0.0376)
OKLCHoklch(32.9% 0.067 34.2)
XYZxyz(4.4273, 3.3341, 1.5725)
Luminance0.0333 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52271D #1D4852
analogous
#521D2E #52271D #52421D
triadic
#52271D #1D5227 #271D52
tetradic
#52271D #2E521D #1D4852 #421D52
square
#52271D #2E521D #1D4852 #421D52
split-complementary
#52271D #1D5242 #1D2E52
monochromatic
#170B08 #25110D #52271D #7F3D2D #AC523D

Accessibility & contrast

On white

12.60
#52271D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#52271D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52271D
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52271D#FFFFFF#000000##FFFFFF
##52271D1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322E1C
Deuteranopia (green-blind)
#3C371C
Tritanopia (blue-blind)
#5A2025
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #52271d;
/* rgb */ color: rgb(82, 39, 29);
/* oklch */ color: oklch(32.9% 0.067 34.2);
Tailwind
colors: {
  custom: {
    50: '#866259',
    500: '#52271d',
    950: '#000000',
  },
}
SCSS
$custom: #52271d;
$custom-light: #866259;
$custom-dark: #000000;
JSON
{
  "hex": "#52271d",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 29
  },
  "hsl": {
    "h": 11.321,
    "s": 47.748,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32903,
    "c": 0.06691,
    "h": 34.2
  },
  "luminance": 0.03334
}

Semantic roles & 50–950 ramp

primary
#52271D
secondary
#447B87
accent
#BED750
background
#F8F5F5
surface
#F0EAE9
border
#CBC6C5
text
#0C0503
muted
#7D7978

Preview Lab

Preview with #52271D

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

Preview Lab → · Contrast checker → · Palette generator →

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