#520C45#520C45

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

Color values

HEX#520C45
RGBrgb(82, 12, 69)
HSLhsl(311, 74%, 18%)
HSVhsv(311, 85%, 32%)
CMYKcmyk(0%, 85.4%, 15.9%, 67.8%)
CIE-LABlab(17.86, 37.39, -17.14)
CIE-LCHlch(17.86, 41.13, 335.37°)
OKLaboklab(30.78% 0.1103 -0.0467)
OKLCHoklch(30.78% 0.12 337.1)
XYZxyz(4.6854, 2.4869, 5.8623)
Luminance0.0249 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520C45 #0C5219
analogous
#3C0C52 #520C45 #520C22
triadic
#520C45 #45520C #0C4552
tetradic
#520C45 #523C0C #0C5219 #0C2252
square
#520C45 #523C0C #0C5219 #0C2252
split-complementary
#520C45 #22520C #0C523C
monochromatic
#1B0416 #1D0418 #520C45 #871472 #BD1C9F

Accessibility & contrast

On white

14.03
#520C45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520C45
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520C45#FFFFFF#000000##FFFFFF
##520C451.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2546
Deuteranopia (green-blind)
#272F43
Tritanopia (blue-blind)
#571128
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #520c45;
/* rgb */ color: rgb(82, 12, 69);
/* oklch */ color: oklch(30.8% 0.120 337.1);
Tailwind
colors: {
  custom: {
    50: '#865579',
    500: '#520c45',
    950: '#000000',
  },
}
SCSS
$custom: #520c45;
$custom-light: #865579;
$custom-dark: #000000;
JSON
{
  "hex": "#520c45",
  "rgb": {
    "r": 82,
    "g": 12,
    "b": 69
  },
  "hsl": {
    "h": 311.143,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.30782,
    "c": 0.11978,
    "h": 337.1
  },
  "luminance": 0.02486
}

Semantic roles & 50–950 ramp

primary
#520C45
secondary
#2C8D3E
accent
#F15937
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #520C45

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

Preview Lab → · Contrast checker → · Palette generator →

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