#52181B#52181B

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

Color values

HEX#52181B
RGBrgb(82, 24, 27)
HSLhsl(357, 55%, 21%)
HSVhsv(357, 71%, 32%)
CMYKcmyk(0%, 70.7%, 67.1%, 67.8%)
CIE-LABlab(18.04, 27.26, 12.82)
CIE-LCHlch(18.04, 30.13, 25.18°)
OKLaboklab(30.4% 0.0808 0.031)
OKLCHoklch(30.4% 0.087 21)
XYZxyz(4.0045, 2.5268, 1.3135)
Luminance0.0253 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52181B #18524F
analogous
#521838 #52181B #523218
triadic
#52181B #1B5218 #181B52
tetradic
#52181B #385218 #18524F #321852
square
#52181B #385218 #18524F #321852
split-complementary
#52181B #185232 #183852
monochromatic
#180708 #230A0B #52181B #81262B #B1343A

Accessibility & contrast

On white

13.95
#52181B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52181B
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52181B#FFFFFF#000000##FFFFFF
##52181B1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27241B
Deuteranopia (green-blind)
#363119
Tritanopia (blue-blind)
#5A0B1A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #52181b;
/* rgb */ color: rgb(82, 24, 27);
/* oklch */ color: oklch(30.4% 0.087 21.0);
Tailwind
colors: {
  custom: {
    50: '#875857',
    500: '#52181b',
    950: '#000000',
  },
}
SCSS
$custom: #52181b;
$custom-light: #875857;
$custom-dark: #000000;
JSON
{
  "hex": "#52181b",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 27
  },
  "hsl": {
    "h": 356.897,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.30398,
    "c": 0.08655,
    "h": 21
  },
  "luminance": 0.02526
}

Semantic roles & 50–950 ramp

primary
#52181B
secondary
#3D8985
accent
#DED64A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #52181B

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

Preview Lab → · Contrast checker → · Palette generator →

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