#520D1F#520D1F

#520D1F is a dark, moderate pink. Relative luminance 0.022; OKLCH L 29.2% C 0.100 H 11.3°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#520D1F
RGBrgb(82, 13, 31)
HSLhsl(344, 73%, 19%)
HSVhsv(344, 84%, 32%)
CMYKcmyk(0%, 84.1%, 62.2%, 67.8%)
CIE-LABlab(16.41, 32.33, 7.80)
CIE-LCHlch(16.41, 33.26, 13.56°)
OKLaboklab(29.22% 0.0978 0.0195)
OKLCHoklch(29.22% 0.1 11.3)
XYZxyz(3.8713, 2.1812, 1.5132)
Luminance0.0218 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520D1F #0D5240
analogous
#520D41 #520D1F #521D0D
triadic
#520D1F #1F520D #0D1F52
tetradic
#520D1F #41520D #0D5240 #1D0D52
square
#520D1F #41520D #0D5240 #1D0D52
split-complementary
#520D1F #0D521D #0D4152
monochromatic
#1A040A #1D050B #520D1F #871533 #BC1E47

Accessibility & contrast

On white

14.62
#520D1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520D1F
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520D1F#FFFFFF#000000##FFFFFF
##520D1F1.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #520d1f;
/* rgb */ color: rgb(82, 13, 31);
/* oklch */ color: oklch(29.2% 0.100 11.3);
Tailwind
colors: {
  custom: {
    50: '#88535a',
    500: '#520d1f',
    950: '#000000',
  },
}
SCSS
$custom: #520d1f;
$custom-light: #88535a;
$custom-dark: #000000;
JSON
{
  "hex": "#520d1f",
  "rgb": {
    "r": 82,
    "g": 13,
    "b": 31
  },
  "hsl": {
    "h": 344.348,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.29216,
    "c": 0.09977,
    "h": 11.3
  },
  "luminance": 0.02181
}

Semantic roles & 50–950 ramp

primary
#520D1F
secondary
#2E8D74
accent
#EFC038
background
#F8F5F5
surface
#F0E8E9
border
#CBC4C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #520D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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