#522B99#522B99

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

Color values

HEX#522B99
RGBrgb(82, 43, 153)
HSLhsl(261, 56%, 38%)
HSVhsv(261, 72%, 60%)
CMYKcmyk(46.4%, 71.9%, 0%, 40%)
CIE-LABlab(28.96, 42.98, -53.67)
CIE-LCHlch(28.96, 68.76, 308.69°)
OKLaboklab(40.66% 0.0678 -0.1537)
OKLCHoklch(40.66% 0.168 293.8)
XYZxyz(10.0917, 5.8212, 30.7227)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B99 #72992B
analogous
#2B3B99 #522B99 #892B99
triadic
#522B99 #99522B #2B9952
tetradic
#522B99 #992B3B #72992B #2B9989
square
#522B99 #992B3B #72992B #2B9989
split-complementary
#522B99 #99892B #3B992B
monochromatic
#1F1039 #381E69 #522B99 #6C3AC8 #9069D5

Accessibility & contrast

On white

9.70
#522B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522B99
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B99#FFFFFF#000000##FFFFFF
##522B991.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#3D475F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #522b99;
/* rgb */ color: rgb(82, 43, 153);
/* oklch */ color: oklch(40.7% 0.168 293.8);
Tailwind
colors: {
  custom: {
    50: '#8968b8',
    500: '#522b99',
    950: '#000000',
  },
}
SCSS
$custom: #522b99;
$custom-light: #8968b8;
$custom-dark: #000000;
JSON
{
  "hex": "#522b99",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 153
  },
  "hsl": {
    "h": 261.273,
    "s": 56.122,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40657,
    "c": 0.16798,
    "h": 293.8
  },
  "luminance": 0.05821
}

Semantic roles & 50–950 ramp

primary
#522B99
secondary
#9DBC64
accent
#DF48AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522B99

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

Preview Lab → · Contrast checker → · Palette generator →

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