#520D18#520D18

#520D18 is a dark, moderate red. Relative luminance 0.021; OKLCH L 29.0% C 0.099 H 17.7°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#520D18
RGBrgb(82, 13, 24)
HSLhsl(350, 73%, 19%)
HSVhsv(350, 84%, 32%)
CMYKcmyk(0%, 84.1%, 70.7%, 67.8%)
CIE-LABlab(16.25, 31.81, 12.64)
CIE-LCHlch(16.25, 34.23, 21.67°)
OKLaboklab(29.04% 0.0947 0.0302)
OKLCHoklch(29.04% 0.099 17.7)
XYZxyz(3.7889, 2.1482, 1.0791)
Luminance0.0215 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520D18 #0D5247
analogous
#520D3A #520D18 #52240D
triadic
#520D18 #18520D #0D1852
tetradic
#520D18 #3A520D #0D5247 #240D52
square
#520D18 #3A520D #0D5247 #240D52
split-complementary
#520D18 #0D5224 #0D3A52
monochromatic
#1A0408 #1D0509 #520D18 #871527 #BC1E37

Accessibility & contrast

On white

14.69
#520D18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#520D18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520D18
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520D18#FFFFFF#000000##FFFFFF
##520D181.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#211F18
Deuteranopia (green-blind)
#322D16
Tritanopia (blue-blind)
#5B0012
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #520d18;
/* rgb */ color: rgb(82, 13, 24);
/* oklch */ color: oklch(29.0% 0.099 17.7);
Tailwind
colors: {
  custom: {
    50: '#885354',
    500: '#520d18',
    950: '#000000',
  },
}
SCSS
$custom: #520d18;
$custom-light: #885354;
$custom-dark: #000000;
JSON
{
  "hex": "#520d18",
  "rgb": {
    "r": 82,
    "g": 13,
    "b": 24
  },
  "hsl": {
    "h": 350.435,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.29042,
    "c": 0.09935,
    "h": 17.7
  },
  "luminance": 0.02148
}

Semantic roles & 50–950 ramp

primary
#520D18
secondary
#2E8D7E
accent
#EFD238
background
#F8F4F4
surface
#F0E8E7
border
#CBC4C3
text
#0C0302
muted
#7D7878

Preview Lab

Preview with #520D18

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

Preview Lab → · Contrast checker → · Palette generator →

#520D18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva