#520F47#520F47

#520F47 is a dark, moderate purple. Relative luminance 0.026; OKLCH L 31.2% C 0.118 H 335.7°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#520F47
RGBrgb(82, 15, 71)
HSLhsl(310, 69%, 19%)
HSVhsv(310, 82%, 32%)
CMYKcmyk(0%, 81.7%, 13.4%, 67.8%)
CIE-LABlab(18.32, 36.71, -17.80)
CIE-LCHlch(18.32, 40.79, 334.14°)
OKLaboklab(31.15% 0.1075 -0.0486)
OKLCHoklch(31.15% 0.118 335.7)
XYZxyz(4.7879, 2.5909, 6.2079)
Luminance0.0259 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F47 #0F521A
analogous
#3C0F52 #520F47 #520F26
triadic
#520F47 #47520F #0F4752
tetradic
#520F47 #523C0F #0F521A #0F2652
square
#520F47 #523C0F #0F521A #0F2652
split-complementary
#520F47 #26520F #0F523C
monochromatic
#1A0516 #1E061A #520F47 #861874 #B922A1

Accessibility & contrast

On white

13.83
#520F47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#520F47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520F47
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F47#FFFFFF#000000##FFFFFF
##520F471.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2649
Deuteranopia (green-blind)
#273045
Tritanopia (blue-blind)
#57142A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #520f47;
/* rgb */ color: rgb(82, 15, 71);
/* oklch */ color: oklch(31.2% 0.118 335.7);
Tailwind
colors: {
  custom: {
    50: '#85567a',
    500: '#520f47',
    950: '#000000',
  },
}
SCSS
$custom: #520f47;
$custom-light: #85567a;
$custom-dark: #000000;
JSON
{
  "hex": "#520f47",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 71
  },
  "hsl": {
    "h": 309.851,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.31154,
    "c": 0.11796,
    "h": 335.7
  },
  "luminance": 0.0259
}

Semantic roles & 50–950 ramp

primary
#520F47
secondary
#318C40
accent
#EC593C
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #520F47

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

Preview Lab → · Contrast checker → · Palette generator →

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