#522AB5#522AB5

#522AB5 is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.1% C 0.202 H 287.8°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#522AB5
RGBrgb(82, 42, 181)
HSLhsl(257, 62%, 44%)
HSVhsv(257, 77%, 71%)
CMYKcmyk(54.7%, 76.8%, 0%, 29%)
CIE-LABlab(31.31, 51.32, -66.68)
CIE-LCHlch(31.31, 84.14, 307.58°)
OKLaboklab(43.09% 0.0618 -0.1918)
OKLCHoklch(43.09% 0.202 287.8)
XYZxyz(12.6457, 6.7853, 44.3505)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522AB5 #8DB52A
analogous
#2A47B5 #522AB5 #972AB5
triadic
#522AB5 #B5522A #2AB552
tetradic
#522AB5 #B52A47 #8DB52A #2AB597
square
#522AB5 #B52A47 #8DB52A #2AB597
split-complementary
#522AB5 #B5972A #47B52A
monochromatic
#251352 #3B1E83 #522AB5 #7048D4 #9779E0

Accessibility & contrast

On white

8.91
#522AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#522AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522AB5
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522AB5#FFFFFF#000000##FFFFFF
##522AB51.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB9
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#28516E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #522ab5;
/* rgb */ color: rgb(82, 42, 181);
/* oklch */ color: oklch(43.1% 0.202 287.8);
Tailwind
colors: {
  custom: {
    50: '#8d68cc',
    500: '#522ab5',
    950: '#000000',
  },
}
SCSS
$custom: #522ab5;
$custom-light: #8d68cc;
$custom-dark: #000000;
JSON
{
  "hex": "#522ab5",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 257.266,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43094,
    "c": 0.20155,
    "h": 287.8
  },
  "luminance": 0.06786
}

Semantic roles & 50–950 ramp

primary
#522AB5
secondary
#AFC873
accent
#E542B6
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #522AB5

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

Preview Lab → · Contrast checker → · Palette generator →

#522AB5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva