#520F17#520F17

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

Color values

HEX#520F17
RGBrgb(82, 15, 23)
HSLhsl(353, 69%, 19%)
HSVhsv(353, 82%, 32%)
CMYKcmyk(0%, 81.7%, 72%, 67.8%)
CIE-LABlab(16.49, 31.00, 13.67)
CIE-LCHlch(16.49, 33.87, 23.79°)
OKLaboklab(29.22% 0.0918 0.0324)
OKLCHoklch(29.22% 0.097 19.4)
XYZxyz(3.8056, 2.1979, 1.0343)
Luminance0.0220 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F17 #0F524A
analogous
#520F39 #520F17 #52290F
triadic
#520F17 #17520F #0F1752
tetradic
#520F17 #39520F #0F524A #290F52
square
#520F17 #39520F #0F524A #290F52
split-complementary
#520F17 #0F5229 #0F3952
monochromatic
#1A0507 #1E0608 #520F17 #861826 #B92234

Accessibility & contrast

On white

14.59
#520F17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520F17
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F17#FFFFFF#000000##FFFFFF
##520F171.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #520f17;
/* rgb */ color: rgb(82, 15, 23);
/* oklch */ color: oklch(29.2% 0.097 19.4);
Tailwind
colors: {
  custom: {
    50: '#885453',
    500: '#520f17',
    950: '#000000',
  },
}
SCSS
$custom: #520f17;
$custom-light: #885453;
$custom-dark: #000000;
JSON
{
  "hex": "#520f17",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 23
  },
  "hsl": {
    "h": 352.836,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29218,
    "c": 0.09736,
    "h": 19.4
  },
  "luminance": 0.02197
}

Semantic roles & 50–950 ramp

primary
#520F17
secondary
#318C81
accent
#ECD73C
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0302
muted
#7D7878

Preview Lab

Preview with #520F17

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

Preview Lab → · Contrast checker → · Palette generator →

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