#520C46#520C46

#520C46 is a dark, vivid pink. Relative luminance 0.025; OKLCH L 30.8% C 0.121 H 336.3°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#520C46
RGBrgb(82, 12, 70)
HSLhsl(310, 74%, 18%)
HSVhsv(310, 85%, 32%)
CMYKcmyk(0%, 85.4%, 14.6%, 67.8%)
CIE-LABlab(17.92, 37.55, -17.75)
CIE-LCHlch(17.92, 41.53, 334.70°)
OKLaboklab(30.84% 0.1104 -0.0484)
OKLCHoklch(30.84% 0.121 336.3)
XYZxyz(4.7167, 2.4994, 6.0272)
Luminance0.0250 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520C46 #0C5218
analogous
#3B0C52 #520C46 #520C23
triadic
#520C46 #46520C #0C4652
tetradic
#520C46 #523B0C #0C5218 #0C2352
square
#520C46 #523B0C #0C5218 #0C2352
split-complementary
#520C46 #23520C #0C523B
monochromatic
#1B0417 #1D0418 #520C46 #871474 #BD1CA1

Accessibility & contrast

On white

14.00
#520C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520C46
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520C46#FFFFFF#000000##FFFFFF
##520C461.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #520c46;
/* rgb */ color: rgb(82, 12, 70);
/* oklch */ color: oklch(30.8% 0.121 336.3);
Tailwind
colors: {
  custom: {
    50: '#865579',
    500: '#520c46',
    950: '#000000',
  },
}
SCSS
$custom: #520c46;
$custom-light: #865579;
$custom-dark: #000000;
JSON
{
  "hex": "#520c46",
  "rgb": {
    "r": 82,
    "g": 12,
    "b": 70
  },
  "hsl": {
    "h": 310.286,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.30841,
    "c": 0.12055,
    "h": 336.3
  },
  "luminance": 0.02499
}

Semantic roles & 50–950 ramp

primary
#520C46
secondary
#2C8D3D
accent
#F15737
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #520C46

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

Preview Lab → · Contrast checker → · Palette generator →

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