#521779#521779

#521779 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.156 H 307.3°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#521779
RGBrgb(82, 23, 121)
HSLhsl(276, 68%, 28%)
HSVhsv(276, 81%, 47%)
CMYKcmyk(32.2%, 81%, 0%, 52.5%)
CIE-LABlab(22.96, 44.01, -43.48)
CIE-LCHlch(22.96, 61.86, 315.35°)
OKLaboklab(35.58% 0.0943 -0.1236)
OKLCHoklch(35.58% 0.156 307.3)
XYZxyz(7.2365, 3.7872, 18.4352)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521779 #3E7917
analogous
#211779 #521779 #79176F
triadic
#521779 #795217 #177952
tetradic
#521779 #792117 #3E7917 #176F79
square
#521779 #792117 #3E7917 #176F79
split-complementary
#521779 #6F7917 #177921
monochromatic
#11051A #2F0D46 #521779 #7521AC #9632D8

Accessibility & contrast

On white

11.95
#521779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#521779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521779
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521779#FFFFFF#000000##FFFFFF
##5217791.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#003777
Tritanopia (blue-blind)
#4B3048
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #521779;
/* rgb */ color: rgb(82, 23, 121);
/* oklch */ color: oklch(35.6% 0.156 307.3);
Tailwind
colors: {
  custom: {
    50: '#875ca0',
    500: '#521779',
    950: '#000000',
  },
}
SCSS
$custom: #521779;
$custom-light: #875ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#521779",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 276.122,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35576,
    "c": 0.15552,
    "h": 307.3
  },
  "luminance": 0.03787
}

Semantic roles & 50–950 ramp

primary
#521779
secondary
#6AAE3E
accent
#EB3D82
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #521779

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

Preview Lab → · Contrast checker → · Palette generator →

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