#520F18#520F18

#520F18 is a dark, moderate red. Relative luminance 0.022; OKLCH L 29.2% C 0.097 H 18.6°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#520F18
RGBrgb(82, 15, 24)
HSLhsl(352, 69%, 19%)
HSVhsv(352, 82%, 32%)
CMYKcmyk(0%, 81.7%, 70.7%, 67.8%)
CIE-LABlab(16.51, 31.06, 12.98)
CIE-LCHlch(16.51, 33.66, 22.68°)
OKLaboklab(29.24% 0.0923 0.031)
OKLCHoklch(29.24% 0.097 18.6)
XYZxyz(3.8158, 2.2020, 1.0881)
Luminance0.0220 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F18 #0F5249
analogous
#520F3A #520F18 #52280F
triadic
#520F18 #18520F #0F1852
tetradic
#520F18 #3A520F #0F5249 #280F52
square
#520F18 #3A520F #0F5249 #280F52
split-complementary
#520F18 #0F5228 #0F3A52
monochromatic
#1A0508 #1E0609 #520F18 #861827 #B92236

Accessibility & contrast

On white

14.58
#520F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#520F18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520F18
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F18#FFFFFF#000000##FFFFFF
##520F181.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222018
Deuteranopia (green-blind)
#332E16
Tritanopia (blue-blind)
#5B0013
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #520f18;
/* rgb */ color: rgb(82, 15, 24);
/* oklch */ color: oklch(29.2% 0.097 18.6);
Tailwind
colors: {
  custom: {
    50: '#885454',
    500: '#520f18',
    950: '#000000',
  },
}
SCSS
$custom: #520f18;
$custom-light: #885454;
$custom-dark: #000000;
JSON
{
  "hex": "#520f18",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 24
  },
  "hsl": {
    "h": 351.94,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2924,
    "c": 0.09732,
    "h": 18.6
  },
  "luminance": 0.02201
}

Semantic roles & 50–950 ramp

primary
#520F18
secondary
#318C80
accent
#ECD43C
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0302
muted
#7D7878

Preview Lab

Preview with #520F18

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

Preview Lab → · Contrast checker → · Palette generator →

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