#522579#522579

#522579 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.138 H 305.2°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#522579
RGBrgb(82, 37, 121)
HSLhsl(272, 53%, 31%)
HSVhsv(272, 69%, 47%)
CMYKcmyk(32.2%, 69.4%, 0%, 52.5%)
CIE-LABlab(25.25, 37.52, -39.76)
CIE-LCHlch(25.25, 54.66, 313.34°)
OKLaboklab(37.21% 0.0795 -0.1128)
OKLCHoklch(37.21% 0.138 305.2)
XYZxyz(7.5917, 4.4975, 18.5536)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522579 #4C7925
analogous
#282579 #522579 #792576
triadic
#522579 #795225 #257952
tetradic
#522579 #792825 #4C7925 #257679
square
#522579 #792825 #4C7925 #257679
split-complementary
#522579 #767925 #257928
monochromatic
#12081B #32174A #522579 #7233A8 #914FC9

Accessibility & contrast

On white

11.06
#522579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#522579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522579
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522579#FFFFFF#000000##FFFFFF
##5225791.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7C
Deuteranopia (green-blind)
#0B3C77
Tritanopia (blue-blind)
#4B374B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #522579;
/* rgb */ color: rgb(82, 37, 121);
/* oklch */ color: oklch(37.2% 0.138 305.2);
Tailwind
colors: {
  custom: {
    50: '#8663a0',
    500: '#522579',
    950: '#000000',
  },
}
SCSS
$custom: #522579;
$custom-light: #8663a0;
$custom-dark: #000000;
JSON
{
  "hex": "#522579",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 272.143,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37205,
    "c": 0.138,
    "h": 305.2
  },
  "luminance": 0.04497
}

Semantic roles & 50–950 ramp

primary
#522579
secondary
#7AAB4E
accent
#DD4B8F
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B050F
muted
#7C7A7E

Preview Lab

Preview with #522579

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

Preview Lab → · Contrast checker → · Palette generator →

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