#520F7F#520F7F

#520F7F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.169 H 305.8°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#520F7F
RGBrgb(82, 15, 127)
HSLhsl(276, 79%, 28%)
HSVhsv(276, 88%, 50%)
CMYKcmyk(35.4%, 88.2%, 0%, 50.2%)
CIE-LABlab(22.54, 48.14, -47.97)
CIE-LCHlch(22.54, 67.96, 315.10°)
OKLaboklab(35.45% 0.0986 -0.1368)
OKLCHoklch(35.45% 0.169 305.8)
XYZxyz(7.4804, 3.6679, 20.3884)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F7F #3C7F0F
analogous
#1A0F7F #520F7F #7F0F74
triadic
#520F7F #7F520F #0F7F52
tetradic
#520F7F #7F1A0F #3C7F0F #0F747F
square
#520F7F #7F1A0F #3C7F0F #0F747F
split-complementary
#520F7F #747F0F #0F7F1A
monochromatic
#12031B #2F0948 #520F7F #7515B6 #9723E5

Accessibility & contrast

On white

12.11
#520F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#520F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520F7F
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F7F#FFFFFF#000000##FFFFFF
##520F7F1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#4A304A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #520f7f;
/* rgb */ color: rgb(82, 15, 127);
/* oklch */ color: oklch(35.5% 0.169 305.8);
Tailwind
colors: {
  custom: {
    50: '#8859a5',
    500: '#520f7f',
    950: '#000000',
  },
}
SCSS
$custom: #520f7f;
$custom-light: #8859a5;
$custom-dark: #000000;
JSON
{
  "hex": "#520f7f",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 127
  },
  "hsl": {
    "h": 275.893,
    "s": 78.873,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35451,
    "c": 0.16862,
    "h": 305.8
  },
  "luminance": 0.03668
}

Semantic roles & 50–950 ramp

primary
#520F7F
secondary
#68B534
accent
#F53281
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #520F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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