#522A89#522A89

#522A89 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.2% C 0.150 H 298.5°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#522A89
RGBrgb(82, 42, 137)
HSLhsl(265, 53%, 35%)
HSVhsv(265, 69%, 54%)
CMYKcmyk(40.1%, 69.3%, 0%, 46.3%)
CIE-LABlab(27.45, 39.09, -46.25)
CIE-LCHlch(27.45, 60.56, 310.21°)
OKLaboklab(39.17% 0.0716 -0.1319)
OKLCHoklch(39.17% 0.15 298.5)
XYZxyz(8.8219, 5.2558, 24.2117)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A89 #61892A
analogous
#2A3189 #522A89 #812A89
triadic
#522A89 #89522A #2A8952
tetradic
#522A89 #892A31 #61892A #2A8981
square
#522A89 #892A31 #61892A #2A8981
split-complementary
#522A89 #89812A #31892A
monochromatic
#1A0D2B #361C5A #522A89 #6E38B8 #8E5FCE

Accessibility & contrast

On white

10.24
#522A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#522A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A89
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A89#FFFFFF#000000##FFFFFF
##522A891.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418C
Deuteranopia (green-blind)
#004087
Tritanopia (blue-blind)
#454056
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522a89;
/* rgb */ color: rgb(82, 42, 137);
/* oklch */ color: oklch(39.2% 0.150 298.5);
Tailwind
colors: {
  custom: {
    50: '#8766ac',
    500: '#522a89',
    950: '#000000',
  },
}
SCSS
$custom: #522a89;
$custom-light: #8766ac;
$custom-dark: #000000;
JSON
{
  "hex": "#522a89",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 137
  },
  "hsl": {
    "h": 265.263,
    "s": 53.073,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39172,
    "c": 0.15009,
    "h": 298.5
  },
  "luminance": 0.05256
}

Semantic roles & 50–950 ramp

primary
#522A89
secondary
#8EB45B
accent
#DC4B9F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522A89

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

Preview Lab → · Contrast checker → · Palette generator →

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