#522B9B#522B9B

#522B9B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.170 H 293.3°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#522B9B
RGBrgb(82, 43, 155)
HSLhsl(261, 57%, 39%)
HSVhsv(261, 72%, 61%)
CMYKcmyk(47.1%, 72.3%, 0%, 39.2%)
CIE-LABlab(29.13, 43.54, -54.61)
CIE-LCHlch(29.13, 69.84, 308.57°)
OKLaboklab(40.83% 0.0674 -0.1565)
OKLCHoklch(40.83% 0.17 293.3)
XYZxyz(10.2583, 5.8878, 31.6000)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B9B #749B2B
analogous
#2B3C9B #522B9B #8A2B9B
triadic
#522B9B #9B522B #2B9B52
tetradic
#522B9B #9B2B3C #749B2B #2B9B8A
square
#522B9B #9B2B3C #749B2B #2B9B8A
split-complementary
#522B9B #9B8A2B #3C9B2B
monochromatic
#1F103B #391E6B #522B9B #6C3BC9 #906BD6

Accessibility & contrast

On white

9.64
#522B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#522B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B9B
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B9B#FFFFFF#000000##FFFFFF
##522B9B1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#3C4860
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #522b9b;
/* rgb */ color: rgb(82, 43, 155);
/* oklch */ color: oklch(40.8% 0.170 293.3);
Tailwind
colors: {
  custom: {
    50: '#8a68b9',
    500: '#522b9b',
    950: '#000000',
  },
}
SCSS
$custom: #522b9b;
$custom-light: #8a68b9;
$custom-dark: #000000;
JSON
{
  "hex": "#522b9b",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 155
  },
  "hsl": {
    "h": 260.893,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40832,
    "c": 0.17035,
    "h": 293.3
  },
  "luminance": 0.05888
}

Semantic roles & 50–950 ramp

primary
#522B9B
secondary
#9EBC65
accent
#E048AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #522B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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