#520B42#520B42

#520B42 is a dark, moderate pink. Relative luminance 0.024; OKLCH L 30.5% C 0.119 H 339.3°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#520B42
RGBrgb(82, 11, 66)
HSLhsl(314, 76%, 18%)
HSVhsv(314, 87%, 32%)
CMYKcmyk(0%, 86.6%, 19.5%, 67.8%)
CIE-LABlab(17.59, 37.22, -15.49)
CIE-LCHlch(17.59, 40.31, 337.41°)
OKLaboklab(30.53% 0.1109 -0.0419)
OKLCHoklch(30.53% 0.119 339.3)
XYZxyz(4.5828, 2.4270, 5.3803)
Luminance0.0243 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520B42 #0B521B
analogous
#3E0B52 #520B42 #520B1E
triadic
#520B42 #42520B #0B4252
tetradic
#520B42 #523E0B #0B521B #0B1E52
square
#520B42 #523E0B #0B521B #0B1E52
split-complementary
#520B42 #1E520B #0B523E
monochromatic
#1B0416 #1C0417 #520B42 #88126D #BE1999

Accessibility & contrast

On white

14.14
#520B42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#520B42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520B42
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520B42#FFFFFF#000000##FFFFFF
##520B421.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102443
Deuteranopia (green-blind)
#282F40
Tritanopia (blue-blind)
#570E26
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #520b42;
/* rgb */ color: rgb(82, 11, 66);
/* oklch */ color: oklch(30.5% 0.119 339.3);
Tailwind
colors: {
  custom: {
    50: '#865476',
    500: '#520b42',
    950: '#000000',
  },
}
SCSS
$custom: #520b42;
$custom-light: #865476;
$custom-dark: #000000;
JSON
{
  "hex": "#520b42",
  "rgb": {
    "r": 82,
    "g": 11,
    "b": 66
  },
  "hsl": {
    "h": 313.521,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.30531,
    "c": 0.11858,
    "h": 339.3
  },
  "luminance": 0.02427
}

Semantic roles & 50–950 ramp

primary
#520B42
secondary
#2B8E41
accent
#F36035
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0B0308
muted
#7C787B

Preview Lab

Preview with #520B42

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

Preview Lab → · Contrast checker → · Palette generator →

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