#520F45#520F45

#520F45 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.0% C 0.116 H 337.2°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#520F45
RGBrgb(82, 15, 69)
HSLhsl(312, 69%, 19%)
HSVhsv(312, 82%, 32%)
CMYKcmyk(0%, 81.7%, 15.9%, 67.8%)
CIE-LABlab(18.21, 36.38, -16.59)
CIE-LCHlch(18.21, 39.98, 335.48°)
OKLaboklab(31.04% 0.1073 -0.0451)
OKLCHoklch(31.04% 0.116 337.2)
XYZxyz(4.7248, 2.5656, 5.8754)
Luminance0.0256 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F45 #0F521C
analogous
#3E0F52 #520F45 #520F24
triadic
#520F45 #45520F #0F4552
tetradic
#520F45 #523E0F #0F521C #0F2452
square
#520F45 #523E0F #0F521C #0F2452
split-complementary
#520F45 #24520F #0F523E
monochromatic
#1A0516 #1E0619 #520F45 #861871 #B9229C

Accessibility & contrast

On white

13.88
#520F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#520F45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520F45
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F45#FFFFFF#000000##FFFFFF
##520F451.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112646
Deuteranopia (green-blind)
#283043
Tritanopia (blue-blind)
#571329
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #520f45;
/* rgb */ color: rgb(82, 15, 69);
/* oklch */ color: oklch(31.0% 0.116 337.2);
Tailwind
colors: {
  custom: {
    50: '#855679',
    500: '#520f45',
    950: '#000000',
  },
}
SCSS
$custom: #520f45;
$custom-light: #855679;
$custom-dark: #000000;
JSON
{
  "hex": "#520f45",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 69
  },
  "hsl": {
    "h": 311.642,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.31037,
    "c": 0.11639,
    "h": 337.2
  },
  "luminance": 0.02565
}

Semantic roles & 50–950 ramp

primary
#520F45
secondary
#318C42
accent
#EC5E3C
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #520F45

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

Preview Lab → · Contrast checker → · Palette generator →

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