#522AA1#522AA1

#522AA1 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.179 H 292.0°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#522AA1
RGBrgb(82, 42, 161)
HSLhsl(260, 59%, 40%)
HSVhsv(260, 74%, 63%)
CMYKcmyk(49.1%, 73.9%, 0%, 36.9%)
CIE-LABlab(29.47, 45.73, -57.70)
CIE-LCHlch(29.47, 73.62, 308.40°)
OKLaboklab(41.24% 0.067 -0.1655)
OKLCHoklch(41.24% 0.179 292)
XYZxyz(10.7389, 6.0226, 34.3080)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522AA1 #79A12A
analogous
#2A3EA1 #522AA1 #8E2AA1
triadic
#522AA1 #A1522A #2AA152
tetradic
#522AA1 #A12A3E #79A12A #2AA18E
square
#522AA1 #A12A3E #79A12A #2AA18E
split-complementary
#522AA1 #A18E2A #3EA12A
monochromatic
#211140 #391D70 #522AA1 #6C3CCC #916DD9

Accessibility & contrast

On white

9.53
#522AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#522AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522AA1
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522AA1#FFFFFF#000000##FFFFFF
##522AA11.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#394963
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #522aa1;
/* rgb */ color: rgb(82, 42, 161);
/* oklch */ color: oklch(41.2% 0.179 292.0);
Tailwind
colors: {
  custom: {
    50: '#8a67be',
    500: '#522aa1',
    950: '#000000',
  },
}
SCSS
$custom: #522aa1;
$custom-light: #8a67be;
$custom-dark: #000000;
JSON
{
  "hex": "#522aa1",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 260.168,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41235,
    "c": 0.17856,
    "h": 292
  },
  "luminance": 0.06023
}

Semantic roles & 50–950 ramp

primary
#522AA1
secondary
#A2C067
accent
#E246AD
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #522AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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