#520F76#520F76

#520F76 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.160 H 309.4°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#520F76
RGBrgb(82, 15, 118)
HSLhsl(279, 77%, 26%)
HSVhsv(279, 87%, 46%)
CMYKcmyk(30.5%, 87.3%, 0%, 53.7%)
CIE-LABlab(21.74, 46.11, -43.54)
CIE-LCHlch(21.74, 63.42, 316.64°)
OKLaboklab(34.65% 0.1016 -0.1237)
OKLCHoklch(34.65% 0.16 309.4)
XYZxyz(6.9198, 3.4436, 17.4362)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F76 #33760F
analogous
#1E0F76 #520F76 #760F66
triadic
#520F76 #76520F #0F7652
tetradic
#520F76 #761E0F #33760F #0F6676
square
#520F76 #761E0F #33760F #0F6676
split-complementary
#520F76 #66760F #0F761E
monochromatic
#13031B #2C0840 #520F76 #7816AC #9D1DE2

Accessibility & contrast

On white

12.44
#520F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#520F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520F76
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F76#FFFFFF#000000##FFFFFF
##520F761.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#003574
Tritanopia (blue-blind)
#4C2B45
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #520f76;
/* rgb */ color: rgb(82, 15, 118);
/* oklch */ color: oklch(34.6% 0.160 309.4);
Tailwind
colors: {
  custom: {
    50: '#87589e',
    500: '#520f76',
    950: '#000000',
  },
}
SCSS
$custom: #520f76;
$custom-light: #87589e;
$custom-dark: #000000;
JSON
{
  "hex": "#520f76",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 118
  },
  "hsl": {
    "h": 279.029,
    "s": 77.444,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34648,
    "c": 0.16008,
    "h": 309.4
  },
  "luminance": 0.03443
}

Semantic roles & 50–950 ramp

primary
#520F76
secondary
#5EAD33
accent
#F43477
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #520F76

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

Preview Lab → · Contrast checker → · Palette generator →

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