#522B9A#522B9A

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

Color values

HEX#522B9A
RGBrgb(82, 43, 154)
HSLhsl(261, 56%, 39%)
HSVhsv(261, 72%, 60%)
CMYKcmyk(46.8%, 72.1%, 0%, 39.6%)
CIE-LABlab(29.04, 43.26, -54.14)
CIE-LCHlch(29.04, 69.30, 308.63°)
OKLaboklab(40.74% 0.0676 -0.1551)
OKLCHoklch(40.74% 0.169 293.5)
XYZxyz(10.1747, 5.8544, 31.1595)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B9A #739A2B
analogous
#2B3B9A #522B9A #892B9A
triadic
#522B9A #9A522B #2B9A52
tetradic
#522B9A #9A2B3B #739A2B #2B9A89
square
#522B9A #9A2B3B #739A2B #2B9A89
split-complementary
#522B9A #9A892B #3B9A2B
monochromatic
#1F103A #391E6A #522B9A #6C3AC8 #906AD5

Accessibility & contrast

On white

9.67
#522B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#522B9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B9A
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B9A#FFFFFF#000000##FFFFFF
##522B9A1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#3D475F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #522b9a;
/* rgb */ color: rgb(82, 43, 154);
/* oklch */ color: oklch(40.7% 0.169 293.5);
Tailwind
colors: {
  custom: {
    50: '#8968b9',
    500: '#522b9a',
    950: '#000000',
  },
}
SCSS
$custom: #522b9a;
$custom-light: #8968b9;
$custom-dark: #000000;
JSON
{
  "hex": "#522b9a",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 154
  },
  "hsl": {
    "h": 261.081,
    "s": 56.345,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40744,
    "c": 0.16917,
    "h": 293.5
  },
  "luminance": 0.05855
}

Semantic roles & 50–950 ramp

primary
#522B9A
secondary
#9DBC65
accent
#E048AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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