#522AB6#522AB6

#522AB6 is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.2% C 0.203 H 287.7°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#522AB6
RGBrgb(82, 42, 182)
HSLhsl(257, 63%, 44%)
HSVhsv(257, 77%, 71%)
CMYKcmyk(54.9%, 76.9%, 0%, 28.6%)
CIE-LABlab(31.41, 51.60, -67.12)
CIE-LCHlch(31.41, 84.66, 307.55°)
OKLaboklab(43.19% 0.0615 -0.1931)
OKLCHoklch(43.19% 0.203 287.7)
XYZxyz(12.7486, 6.8265, 44.8928)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522AB6 #8EB62A
analogous
#2A48B6 #522AB6 #982AB6
triadic
#522AB6 #B6522A #2AB652
tetradic
#522AB6 #B62A48 #8EB62A #2AB698
square
#522AB6 #B62A48 #8EB62A #2AB698
split-complementary
#522AB6 #B6982A #48B62A
monochromatic
#251353 #3C1F84 #522AB6 #7048D5 #977AE0

Accessibility & contrast

On white

8.88
#522AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#522AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522AB6
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522AB6#FFFFFF#000000##FFFFFF
##522AB61.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBA
Deuteranopia (green-blind)
#0046B3
Tritanopia (blue-blind)
#27526F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #522ab6;
/* rgb */ color: rgb(82, 42, 182);
/* oklch */ color: oklch(43.2% 0.203 287.7);
Tailwind
colors: {
  custom: {
    50: '#8e69cd',
    500: '#522ab6',
    950: '#000000',
  },
}
SCSS
$custom: #522ab6;
$custom-light: #8e69cd;
$custom-dark: #000000;
JSON
{
  "hex": "#522ab6",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 257.143,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4319,
    "c": 0.20269,
    "h": 287.7
  },
  "luminance": 0.06827
}

Semantic roles & 50–950 ramp

primary
#522AB6
secondary
#B0C873
accent
#E642B7
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #522AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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