#52271E#52271E

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

Color values

HEX#52271E
RGBrgb(82, 39, 30)
HSLhsl(10, 46%, 22%)
HSVhsv(10, 63%, 32%)
CMYKcmyk(0%, 52.4%, 63.4%, 67.8%)
CIE-LABlab(21.35, 19.07, 15.02)
CIE-LCHlch(21.35, 24.27, 38.24°)
OKLaboklab(32.92% 0.0558 0.0363)
OKLCHoklch(32.92% 0.067 33)
XYZxyz(4.4399, 3.3391, 1.6387)
Luminance0.0334 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52271E #1E4952
analogous
#521E2F #52271E #52411E
triadic
#52271E #1E5227 #271E52
tetradic
#52271E #2F521E #1E4952 #411E52
square
#52271E #2F521E #1E4952 #411E52
split-complementary
#52271E #1E5241 #1E2F52
monochromatic
#160B08 #25120E #52271E #7F3C2E #AC523F

Accessibility & contrast

On white

12.59
#52271E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52271E
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52271E#FFFFFF#000000##FFFFFF
##52271E1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52271e;
/* rgb */ color: rgb(82, 39, 30);
/* oklch */ color: oklch(32.9% 0.067 33.0);
Tailwind
colors: {
  custom: {
    50: '#866259',
    500: '#52271e',
    950: '#000000',
  },
}
SCSS
$custom: #52271e;
$custom-light: #866259;
$custom-dark: #000000;
JSON
{
  "hex": "#52271e",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 30
  },
  "hsl": {
    "h": 10.385,
    "s": 46.429,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32923,
    "c": 0.06653,
    "h": 33
  },
  "luminance": 0.03339
}

Semantic roles & 50–950 ramp

primary
#52271E
secondary
#457C87
accent
#BFD652
background
#F8F5F5
surface
#F0EAE9
border
#CBC6C5
text
#0C0503
muted
#7D7978

Preview Lab

Preview with #52271E

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

Preview Lab → · Contrast checker → · Palette generator →

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