#520D42#520D42

#520D42 is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.7% C 0.116 H 339.4°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#520D42
RGBrgb(82, 13, 66)
HSLhsl(314, 73%, 19%)
HSVhsv(314, 84%, 32%)
CMYKcmyk(0%, 84.1%, 19.5%, 67.8%)
CIE-LABlab(17.81, 36.58, -15.14)
CIE-LCHlch(17.81, 39.59, 337.52°)
OKLaboklab(30.69% 0.109 -0.041)
OKLCHoklch(30.69% 0.116 339.4)
XYZxyz(4.6071, 2.4755, 5.3884)
Luminance0.0248 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520D42 #0D521D
analogous
#3F0D52 #520D42 #520D1F
triadic
#520D42 #42520D #0D4252
tetradic
#520D42 #523F0D #0D521D #0D1F52
square
#520D42 #523F0D #0D521D #0D1F52
split-complementary
#520D42 #1F520D #0D523F
monochromatic
#1A0415 #1D0517 #520D42 #87156D #BC1E97

Accessibility & contrast

On white

14.05
#520D42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520D42
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520D42#FFFFFF#000000##FFFFFF
##520D421.0014.051.5014.05
#FFFFFF14.051.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122543
Deuteranopia (green-blind)
#292F40
Tritanopia (blue-blind)
#571026
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #520d42;
/* rgb */ color: rgb(82, 13, 66);
/* oklch */ color: oklch(30.7% 0.116 339.4);
Tailwind
colors: {
  custom: {
    50: '#865576',
    500: '#520d42',
    950: '#000000',
  },
}
SCSS
$custom: #520d42;
$custom-light: #865576;
$custom-dark: #000000;
JSON
{
  "hex": "#520d42",
  "rgb": {
    "r": 82,
    "g": 13,
    "b": 66
  },
  "hsl": {
    "h": 313.913,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.30691,
    "c": 0.11643,
    "h": 339.4
  },
  "luminance": 0.02475
}

Semantic roles & 50–950 ramp

primary
#520D42
secondary
#2E8D44
accent
#EF6338
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0B0308
muted
#7C787B

Preview Lab

Preview with #520D42

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

Preview Lab → · Contrast checker → · Palette generator →

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