#520F1F#520F1F

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

Color values

HEX#520F1F
RGBrgb(82, 15, 31)
HSLhsl(346, 69%, 19%)
HSVhsv(346, 82%, 32%)
CMYKcmyk(0%, 81.7%, 62.2%, 67.8%)
CIE-LABlab(16.68, 31.59, 8.16)
CIE-LCHlch(16.68, 32.62, 14.48°)
OKLaboklab(29.41% 0.0954 0.0204)
OKLCHoklch(29.41% 0.098 12)
XYZxyz(3.8982, 2.2350, 1.5222)
Luminance0.0223 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F1F #0F5242
analogous
#520F41 #520F1F #52210F
triadic
#520F1F #1F520F #0F1F52
tetradic
#520F1F #41520F #0F5242 #210F52
square
#520F1F #41520F #0F5242 #210F52
split-complementary
#520F1F #0F5221 #0F4152
monochromatic
#1A050A #1E060B #520F1F #861833 #B92246

Accessibility & contrast

On white

14.51
#520F1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#520F1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520F1F
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F1F#FFFFFF#000000##FFFFFF
##520F1F1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21201F
Deuteranopia (green-blind)
#322E1D
Tritanopia (blue-blind)
#5A0016
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #520f1f;
/* rgb */ color: rgb(82, 15, 31);
/* oklch */ color: oklch(29.4% 0.098 12.0);
Tailwind
colors: {
  custom: {
    50: '#87545a',
    500: '#520f1f',
    950: '#000000',
  },
}
SCSS
$custom: #520f1f;
$custom-light: #87545a;
$custom-dark: #000000;
JSON
{
  "hex": "#520f1f",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 31
  },
  "hsl": {
    "h": 345.672,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29412,
    "c": 0.0976,
    "h": 12
  },
  "luminance": 0.02234
}

Semantic roles & 50–950 ramp

primary
#520F1F
secondary
#318C76
accent
#ECC23C
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #520F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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