#520F12#520F12

#520F12 is a dark, moderate red. Relative luminance 0.022; OKLCH L 29.1% C 0.098 H 23.6°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#520F12
RGBrgb(82, 15, 18)
HSLhsl(357, 69%, 19%)
HSVhsv(357, 82%, 32%)
CMYKcmyk(0%, 81.7%, 78%, 67.8%)
CIE-LABlab(16.40, 30.70, 16.91)
CIE-LCHlch(16.40, 35.05, 28.85°)
OKLaboklab(29.12% 0.0896 0.0391)
OKLCHoklch(29.12% 0.098 23.6)
XYZxyz(3.7601, 2.1797, 0.7949)
Luminance0.0218 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F12 #0F524F
analogous
#520F34 #520F12 #522E0F
triadic
#520F12 #12520F #0F1252
tetradic
#520F12 #34520F #0F524F #2E0F52
square
#520F12 #34520F #0F524F #2E0F52
split-complementary
#520F12 #0F522E #0F3452
monochromatic
#1A0506 #1E0607 #520F12 #86181D #B92229

Accessibility & contrast

On white

14.63
#520F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520F12
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F12#FFFFFF#000000##FFFFFF
##520F121.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#231F11
Deuteranopia (green-blind)
#342E10
Tritanopia (blue-blind)
#5B0011
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #520f12;
/* rgb */ color: rgb(82, 15, 18);
/* oklch */ color: oklch(29.1% 0.098 23.6);
Tailwind
colors: {
  custom: {
    50: '#89544f',
    500: '#520f12',
    950: '#000000',
  },
}
SCSS
$custom: #520f12;
$custom-light: #89544f;
$custom-dark: #000000;
JSON
{
  "hex": "#520f12",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 18
  },
  "hsl": {
    "h": 357.313,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29123,
    "c": 0.09777,
    "h": 23.6
  },
  "luminance": 0.02179
}

Semantic roles & 50–950 ramp

primary
#520F12
secondary
#318C88
accent
#ECE43C
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0D0302
muted
#7D7878

Preview Lab

Preview with #520F12

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

Preview Lab → · Contrast checker → · Palette generator →

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