#520F72#520F72

#520F72 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.156 H 311.1°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#520F72
RGBrgb(82, 15, 114)
HSLhsl(281, 77%, 25%)
HSVhsv(281, 87%, 45%)
CMYKcmyk(28.1%, 86.8%, 0%, 55.3%)
CIE-LABlab(21.40, 45.22, -41.52)
CIE-LCHlch(21.40, 61.39, 317.44°)
OKLaboklab(34.3% 0.1027 -0.1178)
OKLCHoklch(34.3% 0.156 311.1)
XYZxyz(6.6872, 3.3506, 16.2108)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F72 #2F720F
analogous
#200F72 #520F72 #720F60
triadic
#520F72 #72520F #0F7252
tetradic
#520F72 #72200F #2F720F #0F6072
square
#520F72 #72200F #2F720F #0F6072
split-complementary
#520F72 #60720F #0F7220
monochromatic
#13041B #2B083C #520F72 #7916A8 #A01DDE

Accessibility & contrast

On white

12.57
#520F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#520F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520F72
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F72#FFFFFF#000000##FFFFFF
##520F721.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#4E2A42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #520f72;
/* rgb */ color: rgb(82, 15, 114);
/* oklch */ color: oklch(34.3% 0.156 311.1);
Tailwind
colors: {
  custom: {
    50: '#87589b',
    500: '#520f72',
    950: '#000000',
  },
}
SCSS
$custom: #520f72;
$custom-light: #87589b;
$custom-dark: #000000;
JSON
{
  "hex": "#520f72",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 114
  },
  "hsl": {
    "h": 280.606,
    "s": 76.744,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34303,
    "c": 0.15631,
    "h": 311.1
  },
  "luminance": 0.0335
}

Semantic roles & 50–950 ramp

primary
#520F72
secondary
#59AA33
accent
#F33572
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #520F72

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

Preview Lab → · Contrast checker → · Palette generator →

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