#522A9B#522A9B

#522A9B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.172 H 293.5°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#522A9B
RGBrgb(82, 42, 155)
HSLhsl(261, 57%, 39%)
HSVhsv(261, 73%, 61%)
CMYKcmyk(47.1%, 72.9%, 0%, 39.2%)
CIE-LABlab(28.94, 44.06, -54.91)
CIE-LCHlch(28.94, 70.40, 308.74°)
OKLaboklab(40.7% 0.0683 -0.1573)
OKLCHoklch(40.7% 0.172 293.5)
XYZxyz(10.2224, 5.8160, 31.5880)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A9B #739B2A
analogous
#2A3A9B #522A9B #8A2A9B
triadic
#522A9B #9B522A #2A9B52
tetradic
#522A9B #9B2A3A #739B2A #2A9B8A
square
#522A9B #9B2A3A #739B2A #2A9B8A
split-complementary
#522A9B #9B8A2A #3A9B2A
monochromatic
#1F103B #391D6B #522A9B #6C39C9 #9069D6

Accessibility & contrast

On white

9.71
#522A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#522A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A9B
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A9B#FFFFFF#000000##FFFFFF
##522A9B1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#3C4760
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #522a9b;
/* rgb */ color: rgb(82, 42, 155);
/* oklch */ color: oklch(40.7% 0.172 293.5);
Tailwind
colors: {
  custom: {
    50: '#8a67b9',
    500: '#522a9b',
    950: '#000000',
  },
}
SCSS
$custom: #522a9b;
$custom-light: #8a67b9;
$custom-dark: #000000;
JSON
{
  "hex": "#522a9b",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 261.239,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40701,
    "c": 0.17154,
    "h": 293.5
  },
  "luminance": 0.05816
}

Semantic roles & 50–950 ramp

primary
#522A9B
secondary
#9DBD64
accent
#E147AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #522A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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