#520F4E#520F4E

#520F4E is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.6% C 0.124 H 330.7°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#520F4E
RGBrgb(82, 15, 78)
HSLhsl(304, 69%, 19%)
HSVhsv(304, 82%, 32%)
CMYKcmyk(0%, 81.7%, 4.9%, 67.8%)
CIE-LABlab(18.74, 37.93, -21.94)
CIE-LCHlch(18.74, 43.82, 329.95°)
OKLaboklab(31.59% 0.1079 -0.0605)
OKLCHoklch(31.59% 0.124 330.7)
XYZxyz(5.0256, 2.6859, 7.4600)
Luminance0.0269 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F4E #0F5213
analogous
#350F52 #520F4E #520F2D
triadic
#520F4E #4E520F #0F4E52
tetradic
#520F4E #52350F #0F5213 #0F2D52
square
#520F4E #52350F #0F5213 #0F2D52
split-complementary
#520F4E #2D520F #0F5235
monochromatic
#1A0519 #1E061D #520F4E #86187F #B922B0

Accessibility & contrast

On white

13.66
#520F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#520F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520F4E
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F4E#FFFFFF#000000##FFFFFF
##520F4E1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072850
Deuteranopia (green-blind)
#24314C
Tritanopia (blue-blind)
#56182E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #520f4e;
/* rgb */ color: rgb(82, 15, 78);
/* oklch */ color: oklch(31.6% 0.124 330.7);
Tailwind
colors: {
  custom: {
    50: '#855680',
    500: '#520f4e',
    950: '#000000',
  },
}
SCSS
$custom: #520f4e;
$custom-light: #855680;
$custom-dark: #000000;
JSON
{
  "hex": "#520f4e",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 78
  },
  "hsl": {
    "h": 303.582,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.31586,
    "c": 0.12371,
    "h": 330.7
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#520F4E
secondary
#318C36
accent
#EC463C
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #520F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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