#520D45#520D45

#520D45 is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.9% C 0.119 H 337.1°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#520D45
RGBrgb(82, 13, 69)
HSLhsl(311, 73%, 19%)
HSVhsv(311, 84%, 32%)
CMYKcmyk(0%, 84.1%, 15.9%, 67.8%)
CIE-LABlab(17.97, 37.06, -16.97)
CIE-LCHlch(17.97, 40.76, 335.40°)
OKLaboklab(30.86% 0.1093 -0.0462)
OKLCHoklch(30.86% 0.119 337.1)
XYZxyz(4.6979, 2.5118, 5.8665)
Luminance0.0251 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520D45 #0D521A
analogous
#3C0D52 #520D45 #520D22
triadic
#520D45 #45520D #0D4552
tetradic
#520D45 #523C0D #0D521A #0D2252
square
#520D45 #523C0D #0D521A #0D2252
split-complementary
#520D45 #22520D #0D523C
monochromatic
#1A0416 #1D0519 #520D45 #871571 #BC1E9E

Accessibility & contrast

On white

13.98
#520D45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#520D45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520D45
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520D45#FFFFFF#000000##FFFFFF
##520D451.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2546
Deuteranopia (green-blind)
#283043
Tritanopia (blue-blind)
#571228
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #520d45;
/* rgb */ color: rgb(82, 13, 69);
/* oklch */ color: oklch(30.9% 0.119 337.1);
Tailwind
colors: {
  custom: {
    50: '#855579',
    500: '#520d45',
    950: '#000000',
  },
}
SCSS
$custom: #520d45;
$custom-light: #855579;
$custom-dark: #000000;
JSON
{
  "hex": "#520d45",
  "rgb": {
    "r": 82,
    "g": 13,
    "b": 69
  },
  "hsl": {
    "h": 311.304,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.30863,
    "c": 0.1187,
    "h": 337.1
  },
  "luminance": 0.02511
}

Semantic roles & 50–950 ramp

primary
#520D45
secondary
#2E8D40
accent
#EF5B38
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #520D45

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

Preview Lab → · Contrast checker → · Palette generator →

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