#52271F#52271F

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

Color values

HEX#52271F
RGBrgb(82, 39, 31)
HSLhsl(9, 45%, 22%)
HSVhsv(9, 62%, 32%)
CMYKcmyk(0%, 52.4%, 62.2%, 67.8%)
CIE-LABlab(21.37, 19.16, 14.38)
CIE-LCHlch(21.37, 23.95, 36.89°)
OKLaboklab(32.94% 0.0562 0.0349)
OKLCHoklch(32.94% 0.066 31.8)
XYZxyz(4.4529, 3.3443, 1.7071)
Luminance0.0334 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52271F #1F4A52
analogous
#521F31 #52271F #52411F
triadic
#52271F #1F5227 #271F52
tetradic
#52271F #31521F #1F4A52 #411F52
square
#52271F #31521F #1F4A52 #411F52
split-complementary
#52271F #1F5241 #1F3152
monochromatic
#160B08 #26120E #52271F #7E3C30 #AB5141

Accessibility & contrast

On white

12.58
#52271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52271F
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52271F#FFFFFF#000000##FFFFFF
##52271F1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52271f;
/* rgb */ color: rgb(82, 39, 31);
/* oklch */ color: oklch(32.9% 0.066 31.8);
Tailwind
colors: {
  custom: {
    50: '#86625a',
    500: '#52271f',
    950: '#000000',
  },
}
SCSS
$custom: #52271f;
$custom-light: #86625a;
$custom-dark: #000000;
JSON
{
  "hex": "#52271f",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 9.412,
    "s": 45.133,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32944,
    "c": 0.06617,
    "h": 31.8
  },
  "luminance": 0.03344
}

Semantic roles & 50–950 ramp

primary
#52271F
secondary
#467D87
accent
#C0D553
background
#F8F5F5
surface
#F0EAE9
border
#CBC6C5
text
#0B0504
muted
#7C7979

Preview Lab

Preview with #52271F

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

Preview Lab → · Contrast checker → · Palette generator →

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