#52181E#52181E

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

Color values

HEX#52181E
RGBrgb(82, 24, 30)
HSLhsl(354, 55%, 21%)
HSVhsv(354, 71%, 32%)
CMYKcmyk(0%, 70.7%, 63.4%, 67.8%)
CIE-LABlab(18.10, 27.51, 10.79)
CIE-LCHlch(18.10, 29.55, 21.43°)
OKLaboklab(30.47% 0.0822 0.0265)
OKLCHoklch(30.47% 0.086 17.9)
XYZxyz(4.0410, 2.5414, 1.5058)
Luminance0.0254 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52181E #18524C
analogous
#52183B #52181E #522F18
triadic
#52181E #1E5218 #181E52
tetradic
#52181E #3B5218 #18524C #2F1852
square
#52181E #3B5218 #18524C #2F1852
split-complementary
#52181E #18522F #183B52
monochromatic
#180709 #230A0D #52181E #81262F #B13441

Accessibility & contrast

On white

13.92
#52181E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52181E
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52181E#FFFFFF#000000##FFFFFF
##52181E1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26251E
Deuteranopia (green-blind)
#35311D
Tritanopia (blue-blind)
#5A0C1B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #52181e;
/* rgb */ color: rgb(82, 24, 30);
/* oklch */ color: oklch(30.5% 0.086 17.9);
Tailwind
colors: {
  custom: {
    50: '#875959',
    500: '#52181e',
    950: '#000000',
  },
}
SCSS
$custom: #52181e;
$custom-light: #875959;
$custom-dark: #000000;
JSON
{
  "hex": "#52181e",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 30
  },
  "hsl": {
    "h": 353.793,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.30468,
    "c": 0.08638,
    "h": 17.9
  },
  "luminance": 0.02541
}

Semantic roles & 50–950 ramp

primary
#52181E
secondary
#3D8981
accent
#DECF4A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #52181E

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

Preview Lab → · Contrast checker → · Palette generator →

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