#52181C#52181C

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

Color values

HEX#52181C
RGBrgb(82, 24, 28)
HSLhsl(356, 55%, 21%)
HSVhsv(356, 71%, 32%)
CMYKcmyk(0%, 70.7%, 65.9%, 67.8%)
CIE-LABlab(18.06, 27.34, 12.15)
CIE-LCHlch(18.06, 29.92, 23.95°)
OKLaboklab(30.42% 0.0813 0.0295)
OKLCHoklch(30.42% 0.086 19.9)
XYZxyz(4.0163, 2.5315, 1.3755)
Luminance0.0253 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52181C #18524E
analogous
#521839 #52181C #523118
triadic
#52181C #1C5218 #181C52
tetradic
#52181C #395218 #18524E #311852
square
#52181C #395218 #18524E #311852
split-complementary
#52181C #185231 #183952
monochromatic
#180708 #230A0C #52181C #81262C #B1343C

Accessibility & contrast

On white

13.94
#52181C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#52181C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52181C
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52181C#FFFFFF#000000##FFFFFF
##52181C1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27241C
Deuteranopia (green-blind)
#35311B
Tritanopia (blue-blind)
#5A0C1A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #52181c;
/* rgb */ color: rgb(82, 24, 28);
/* oklch */ color: oklch(30.4% 0.086 19.9);
Tailwind
colors: {
  custom: {
    50: '#875857',
    500: '#52181c',
    950: '#000000',
  },
}
SCSS
$custom: #52181c;
$custom-light: #875857;
$custom-dark: #000000;
JSON
{
  "hex": "#52181c",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 28
  },
  "hsl": {
    "h": 355.862,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.3042,
    "c": 0.08648,
    "h": 19.9
  },
  "luminance": 0.02531
}

Semantic roles & 50–950 ramp

primary
#52181C
secondary
#3D8984
accent
#DED44A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #52181C

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

Preview Lab → · Contrast checker → · Palette generator →

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