#521579#521579

#521579 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.158 H 307.6°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#521579
RGBrgb(82, 21, 121)
HSLhsl(277, 70%, 28%)
HSVhsv(277, 83%, 47%)
CMYKcmyk(32.2%, 82.6%, 0%, 52.5%)
CIE-LABlab(22.69, 44.77, -43.91)
CIE-LCHlch(22.69, 62.71, 315.56°)
OKLaboklab(35.39% 0.0961 -0.1249)
OKLCHoklch(35.39% 0.158 307.6)
XYZxyz(7.1983, 3.7107, 18.4225)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521579 #3C7915
analogous
#201579 #521579 #79156E
triadic
#521579 #795215 #157952
tetradic
#521579 #792015 #3C7915 #156E79
square
#521579 #792015 #3C7915 #156E79
split-complementary
#521579 #6E7915 #157920
monochromatic
#12051A #2F0C45 #521579 #751EAD #972EDB

Accessibility & contrast

On white

12.05
#521579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#521579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521579
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521579#FFFFFF#000000##FFFFFF
##5215791.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#003777
Tritanopia (blue-blind)
#4B2F47
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521579;
/* rgb */ color: rgb(82, 21, 121);
/* oklch */ color: oklch(35.4% 0.158 307.6);
Tailwind
colors: {
  custom: {
    50: '#875ba0',
    500: '#521579',
    950: '#000000',
  },
}
SCSS
$custom: #521579;
$custom-light: #875ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#521579",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 276.6,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35391,
    "c": 0.15757,
    "h": 307.6
  },
  "luminance": 0.03711
}

Semantic roles & 50–950 ramp

primary
#521579
secondary
#68AF3B
accent
#ED3B80
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #521579

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

Preview Lab → · Contrast checker → · Palette generator →

#521579 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva