#522B9D#522B9D

#522B9D is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.173 H 292.8°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#522B9D
RGBrgb(82, 43, 157)
HSLhsl(261, 57%, 39%)
HSVhsv(261, 73%, 62%)
CMYKcmyk(47.8%, 72.6%, 0%, 38.4%)
CIE-LABlab(29.30, 44.10, -55.55)
CIE-LCHlch(29.30, 70.92, 308.45°)
OKLaboklab(41.01% 0.0669 -0.1592)
OKLCHoklch(41.01% 0.173 292.8)
XYZxyz(10.4277, 5.9556, 32.4919)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B9D #769D2B
analogous
#2B3D9D #522B9D #8B2B9D
triadic
#522B9D #9D522B #2B9D52
tetradic
#522B9D #9D2B3D #769D2B #2B9D8B
square
#522B9D #9D2B3D #769D2B #2B9D8B
split-complementary
#522B9D #9D8B2B #3D9D2B
monochromatic
#20113D #391E6D #522B9D #6C3CCA #906CD7

Accessibility & contrast

On white

9.58
#522B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#522B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B9D
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B9D#FFFFFF#000000##FFFFFF
##522B9D1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#00439B
Tritanopia (blue-blind)
#3B4861
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #522b9d;
/* rgb */ color: rgb(82, 43, 157);
/* oklch */ color: oklch(41.0% 0.173 292.8);
Tailwind
colors: {
  custom: {
    50: '#8a68bb',
    500: '#522b9d',
    950: '#000000',
  },
}
SCSS
$custom: #522b9d;
$custom-light: #8a68bb;
$custom-dark: #000000;
JSON
{
  "hex": "#522b9d",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 157
  },
  "hsl": {
    "h": 260.526,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41007,
    "c": 0.17272,
    "h": 292.8
  },
  "luminance": 0.05956
}

Semantic roles & 50–950 ramp

primary
#522B9D
secondary
#A0BD66
accent
#E048AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #522B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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