#522EA9#522EA9

#522EA9 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.183 H 289.6°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#522EA9
RGBrgb(82, 46, 169)
HSLhsl(258, 57%, 42%)
HSVhsv(258, 73%, 66%)
CMYKcmyk(51.5%, 72.8%, 0%, 33.7%)
CIE-LABlab(30.91, 45.94, -60.18)
CIE-LCHlch(30.91, 75.71, 307.36°)
OKLaboklab(42.47% 0.0616 -0.1728)
OKLCHoklch(42.47% 0.183 289.6)
XYZxyz(11.6160, 6.6119, 38.1926)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522EA9 #85A92E
analogous
#2E48A9 #522EA9 #902EA9
triadic
#522EA9 #A9522E #2EA952
tetradic
#522EA9 #A92E48 #85A92E #2EA990
square
#522EA9 #A92E48 #85A92E #2EA990
split-complementary
#522EA9 #A9902E #48A92E
monochromatic
#231449 #3B2179 #522EA9 #6E47CD #9477DA

Accessibility & contrast

On white

9.04
#522EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#522EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522EA9
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522EA9#FFFFFF#000000##FFFFFF
##522EA91.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAD
Deuteranopia (green-blind)
#0046A7
Tritanopia (blue-blind)
#334F69
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #522ea9;
/* rgb */ color: rgb(82, 46, 169);
/* oklch */ color: oklch(42.5% 0.183 289.6);
Tailwind
colors: {
  custom: {
    50: '#8b6ac4',
    500: '#522ea9',
    950: '#000000',
  },
}
SCSS
$custom: #522ea9;
$custom-light: #8b6ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#522ea9",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 257.561,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42471,
    "c": 0.18347,
    "h": 289.6
  },
  "luminance": 0.06612
}

Semantic roles & 50–950 ramp

primary
#522EA9
secondary
#AAC271
accent
#E047B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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