#52181F#52181F

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

Color values

HEX#52181F
RGBrgb(82, 24, 31)
HSLhsl(353, 55%, 21%)
HSVhsv(353, 71%, 32%)
CMYKcmyk(0%, 70.7%, 62.2%, 67.8%)
CIE-LABlab(18.13, 27.59, 10.12)
CIE-LCHlch(18.13, 29.39, 20.14°)
OKLaboklab(30.49% 0.0827 0.025)
OKLCHoklch(30.49% 0.086 16.8)
XYZxyz(4.0540, 2.5466, 1.5741)
Luminance0.0255 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52181F #18524B
analogous
#52183C #52181F #522E18
triadic
#52181F #1F5218 #181F52
tetradic
#52181F #3C5218 #18524B #2E1852
square
#52181F #3C5218 #18524B #2E1852
split-complementary
#52181F #18522E #183C52
monochromatic
#180709 #230A0D #52181F #812631 #B13443

Accessibility & contrast

On white

13.91
#52181F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52181F
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52181F#FFFFFF#000000##FFFFFF
##52181F1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52181f;
/* rgb */ color: rgb(82, 24, 31);
/* oklch */ color: oklch(30.5% 0.086 16.8);
Tailwind
colors: {
  custom: {
    50: '#87595a',
    500: '#52181f',
    950: '#000000',
  },
}
SCSS
$custom: #52181f;
$custom-light: #87595a;
$custom-dark: #000000;
JSON
{
  "hex": "#52181f",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 31
  },
  "hsl": {
    "h": 352.759,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.30493,
    "c": 0.08637,
    "h": 16.8
  },
  "luminance": 0.02546
}

Semantic roles & 50–950 ramp

primary
#52181F
secondary
#3D8980
accent
#DECC4A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #52181F

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

Preview Lab → · Contrast checker → · Palette generator →

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