#520F4C#520F4C

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

Color values

HEX#520F4C
RGBrgb(82, 15, 76)
HSLhsl(305, 69%, 19%)
HSVhsv(305, 82%, 32%)
CMYKcmyk(0%, 81.7%, 7.3%, 67.8%)
CIE-LABlab(18.62, 37.57, -20.77)
CIE-LCHlch(18.62, 42.93, 331.07°)
OKLaboklab(31.46% 0.1078 -0.0571)
OKLCHoklch(31.46% 0.122 332.1)
XYZxyz(4.9550, 2.6577, 7.0881)
Luminance0.0266 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F4C #0F5215
analogous
#370F52 #520F4C #520F2B
triadic
#520F4C #4C520F #0F4C52
tetradic
#520F4C #52370F #0F5215 #0F2B52
square
#520F4C #52370F #0F5215 #0F2B52
split-complementary
#520F4C #2B520F #0F5237
monochromatic
#1A0518 #1E061C #520F4C #86187C #B922AC

Accessibility & contrast

On white

13.71
#520F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520F4C
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F4C#FFFFFF#000000##FFFFFF
##520F4C1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A274E
Deuteranopia (green-blind)
#25314A
Tritanopia (blue-blind)
#56172C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #520f4c;
/* rgb */ color: rgb(82, 15, 76);
/* oklch */ color: oklch(31.5% 0.122 332.1);
Tailwind
colors: {
  custom: {
    50: '#85567e',
    500: '#520f4c',
    950: '#000000',
  },
}
SCSS
$custom: #520f4c;
$custom-light: #85567e;
$custom-dark: #000000;
JSON
{
  "hex": "#520f4c",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 76
  },
  "hsl": {
    "h": 305.373,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.31459,
    "c": 0.12203,
    "h": 332.1
  },
  "luminance": 0.02657
}

Semantic roles & 50–950 ramp

primary
#520F4C
secondary
#318C39
accent
#EC4C3C
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #520F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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