#52181A#52181A

#52181A is a dark, moderate red. Relative luminance 0.025; OKLCH L 30.4% C 0.087 H 21.9°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#52181A
RGBrgb(82, 24, 26)
HSLhsl(358, 55%, 21%)
HSVhsv(358, 71%, 32%)
CMYKcmyk(0%, 70.7%, 68.3%, 67.8%)
CIE-LABlab(18.02, 27.19, 13.49)
CIE-LCHlch(18.02, 30.35, 26.39°)
OKLaboklab(30.38% 0.0804 0.0324)
OKLCHoklch(30.38% 0.087 21.9)
XYZxyz(3.9932, 2.5222, 1.2537)
Luminance0.0252 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52181A #185250
analogous
#521837 #52181A #523318
triadic
#52181A #1A5218 #181A52
tetradic
#52181A #375218 #185250 #331852
square
#52181A #375218 #185250 #331852
split-complementary
#52181A #185233 #183752
monochromatic
#180708 #230A0B #52181A #812629 #B13438

Accessibility & contrast

On white

13.96
#52181A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#52181A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52181A
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52181A#FFFFFF#000000##FFFFFF
##52181A1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27241A
Deuteranopia (green-blind)
#363118
Tritanopia (blue-blind)
#5A0B19
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #52181a;
/* rgb */ color: rgb(82, 24, 26);
/* oklch */ color: oklch(30.4% 0.087 21.9);
Tailwind
colors: {
  custom: {
    50: '#875856',
    500: '#52181a',
    950: '#000000',
  },
}
SCSS
$custom: #52181a;
$custom-light: #875856;
$custom-dark: #000000;
JSON
{
  "hex": "#52181a",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 26
  },
  "hsl": {
    "h": 357.931,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.30376,
    "c": 0.08665,
    "h": 21.9
  },
  "luminance": 0.02522
}

Semantic roles & 50–950 ramp

primary
#52181A
secondary
#3D8986
accent
#DED94A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #52181A

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

Preview Lab → · Contrast checker → · Palette generator →

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