#522399#522399

#522399 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.177 H 295.1°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#522399
RGBrgb(82, 35, 153)
HSLhsl(264, 63%, 37%)
HSVhsv(264, 77%, 60%)
CMYKcmyk(46.4%, 77.1%, 0%, 40%)
CIE-LABlab(27.56, 46.93, -55.95)
CIE-LCHlch(27.56, 73.02, 309.99°)
OKLaboklab(39.67% 0.0751 -0.1603)
OKLCHoklch(39.67% 0.177 295.1)
XYZxyz(9.8289, 5.2955, 30.6351)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522399 #6A9923
analogous
#232F99 #522399 #8D2399
triadic
#522399 #995223 #239952
tetradic
#522399 #99232F #6A9923 #23998D
square
#522399 #99232F #6A9923 #23998D
split-complementary
#522399 #998D23 #2F9923
monochromatic
#1D0C35 #371867 #522399 #6D2ECB #8E5DDA

Accessibility & contrast

On white

10.20
#522399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#522399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522399
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522399#FFFFFF#000000##FFFFFF
##5223991.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#3E435D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522399;
/* rgb */ color: rgb(82, 35, 153);
/* oklch */ color: oklch(39.7% 0.177 295.1);
Tailwind
colors: {
  custom: {
    50: '#8a63b8',
    500: '#522399',
    950: '#000000',
  },
}
SCSS
$custom: #522399;
$custom-light: #8a63b8;
$custom-dark: #000000;
JSON
{
  "hex": "#522399",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 263.898,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39671,
    "c": 0.17708,
    "h": 295.1
  },
  "luminance": 0.05296
}

Semantic roles & 50–950 ramp

primary
#522399
secondary
#96BE59
accent
#E642A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #522399

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

Preview Lab → · Contrast checker → · Palette generator →

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