#522A8B#522A8B

#522A8B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.3% C 0.152 H 297.9°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#522A8B
RGBrgb(82, 42, 139)
HSLhsl(265, 54%, 35%)
HSVhsv(265, 70%, 55%)
CMYKcmyk(41%, 69.8%, 0%, 45.5%)
CIE-LABlab(27.61, 39.64, -47.24)
CIE-LCHlch(27.61, 61.66, 310.00°)
OKLaboklab(39.34% 0.0713 -0.1348)
OKLCHoklch(39.34% 0.153 297.9)
XYZxyz(8.9666, 5.3137, 24.9743)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A8B #638B2A
analogous
#2A338B #522A8B #822A8B
triadic
#522A8B #8B522A #2A8B52
tetradic
#522A8B #8B2A33 #638B2A #2A8B82
square
#522A8B #8B2A33 #638B2A #2A8B82
split-complementary
#522A8B #8B822A #338B2A
monochromatic
#1B0E2D #361C5C #522A8B #6E38BA #8E60CF

Accessibility & contrast

On white

10.18
#522A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#522A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A8B
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A8B#FFFFFF#000000##FFFFFF
##522A8B1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#444157
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522a8b;
/* rgb */ color: rgb(82, 42, 139);
/* oklch */ color: oklch(39.3% 0.152 297.9);
Tailwind
colors: {
  custom: {
    50: '#8867ae',
    500: '#522a8b',
    950: '#000000',
  },
}
SCSS
$custom: #522a8b;
$custom-light: #8867ae;
$custom-dark: #000000;
JSON
{
  "hex": "#522a8b",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 264.742,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39336,
    "c": 0.1525,
    "h": 297.9
  },
  "luminance": 0.05314
}

Semantic roles & 50–950 ramp

primary
#522A8B
secondary
#90B55C
accent
#DD4BA1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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