#520F4D#520F4D

#520F4D is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.5% C 0.123 H 331.4°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#520F4D
RGBrgb(82, 15, 77)
HSLhsl(304, 69%, 19%)
HSVhsv(304, 82%, 32%)
CMYKcmyk(0%, 81.7%, 6.1%, 67.8%)
CIE-LABlab(18.68, 37.75, -21.36)
CIE-LCHlch(18.68, 43.37, 330.50°)
OKLaboklab(31.52% 0.1079 -0.0588)
OKLCHoklch(31.52% 0.123 331.4)
XYZxyz(4.9901, 2.6717, 7.2726)
Luminance0.0267 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F4D #0F5214
analogous
#360F52 #520F4D #520F2C
triadic
#520F4D #4D520F #0F4D52
tetradic
#520F4D #52360F #0F5214 #0F2C52
square
#520F4D #52360F #0F5214 #0F2C52
split-complementary
#520F4D #2C520F #0F5236
monochromatic
#1A0518 #1E061C #520F4D #86187E #B922AE

Accessibility & contrast

On white

13.69
#520F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#520F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520F4D
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F4D#FFFFFF#000000##FFFFFF
##520F4D1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09284F
Deuteranopia (green-blind)
#25314B
Tritanopia (blue-blind)
#56172D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #520f4d;
/* rgb */ color: rgb(82, 15, 77);
/* oklch */ color: oklch(31.5% 0.123 331.4);
Tailwind
colors: {
  custom: {
    50: '#85567f',
    500: '#520f4d',
    950: '#000000',
  },
}
SCSS
$custom: #520f4d;
$custom-light: #85567f;
$custom-dark: #000000;
JSON
{
  "hex": "#520f4d",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 304.478,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.31522,
    "c": 0.12287,
    "h": 331.4
  },
  "luminance": 0.02671
}

Semantic roles & 50–950 ramp

primary
#520F4D
secondary
#318C38
accent
#EC493C
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #520F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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