#522B96#522B96

#522B96 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.164 H 294.6°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#522B96
RGBrgb(82, 43, 150)
HSLhsl(262, 55%, 38%)
HSVhsv(262, 71%, 59%)
CMYKcmyk(45.3%, 71.3%, 0%, 41.2%)
CIE-LABlab(28.70, 42.15, -52.24)
CIE-LCHlch(28.70, 67.12, 308.89°)
OKLaboklab(40.4% 0.0684 -0.1495)
OKLCHoklch(40.4% 0.164 294.6)
XYZxyz(9.8471, 5.7233, 29.4341)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B96 #6F962B
analogous
#2B3A96 #522B96 #872B96
triadic
#522B96 #96522B #2B9652
tetradic
#522B96 #962B3A #6F962B #2B9687
square
#522B96 #962B3A #6F962B #2B9687
split-complementary
#522B96 #96872B #3A962B
monochromatic
#1E1037 #381D66 #522B96 #6C39C6 #8F68D4

Accessibility & contrast

On white

9.79
#522B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#522B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B96
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B96#FFFFFF#000000##FFFFFF
##522B961.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#3F465D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #522b96;
/* rgb */ color: rgb(82, 43, 150);
/* oklch */ color: oklch(40.4% 0.164 294.6);
Tailwind
colors: {
  custom: {
    50: '#8968b6',
    500: '#522b96',
    950: '#000000',
  },
}
SCSS
$custom: #522b96;
$custom-light: #8968b6;
$custom-dark: #000000;
JSON
{
  "hex": "#522b96",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 150
  },
  "hsl": {
    "h": 261.869,
    "s": 55.44,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40398,
    "c": 0.16441,
    "h": 294.6
  },
  "luminance": 0.05724
}

Semantic roles & 50–950 ramp

primary
#522B96
secondary
#9ABA63
accent
#DF49A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522B96

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

Preview Lab → · Contrast checker → · Palette generator →

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