#522EAA#522EAA

#522EAA is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.185 H 289.4°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#522EAA
RGBrgb(82, 46, 170)
HSLhsl(257, 57%, 42%)
HSVhsv(257, 73%, 67%)
CMYKcmyk(51.8%, 72.9%, 0%, 33.3%)
CIE-LABlab(31.00, 46.23, -60.63)
CIE-LCHlch(31.00, 76.25, 307.33°)
OKLaboklab(42.56% 0.0614 -0.1741)
OKLCHoklch(42.56% 0.185 289.4)
XYZxyz(11.7103, 6.6496, 38.6889)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522EAA #86AA2E
analogous
#2E48AA #522EAA #902EAA
triadic
#522EAA #AA522E #2EAA52
tetradic
#522EAA #AA2E48 #86AA2E #2EAA90
square
#522EAA #AA2E48 #86AA2E #2EAA90
split-complementary
#522EAA #AA902E #48AA2E
monochromatic
#24144A #3B217A #522EAA #6F48CD #9578DA

Accessibility & contrast

On white

9.01
#522EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#522EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522EAA
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522EAA#FFFFFF#000000##FFFFFF
##522EAA1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0046A8
Tritanopia (blue-blind)
#324F69
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #522eaa;
/* rgb */ color: rgb(82, 46, 170);
/* oklch */ color: oklch(42.6% 0.185 289.4);
Tailwind
colors: {
  custom: {
    50: '#8b6ac4',
    500: '#522eaa',
    950: '#000000',
  },
}
SCSS
$custom: #522eaa;
$custom-light: #8b6ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#522eaa",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 257.419,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42561,
    "c": 0.18465,
    "h": 289.4
  },
  "luminance": 0.0665
}

Semantic roles & 50–950 ramp

primary
#522EAA
secondary
#ABC371
accent
#E147B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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