#522EA4#522EA4

#522EA4 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.178 H 290.7°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#522EA4
RGBrgb(82, 46, 164)
HSLhsl(258, 56%, 41%)
HSVhsv(258, 72%, 64%)
CMYKcmyk(50%, 72%, 0%, 35.7%)
CIE-LABlab(30.47, 44.52, -57.88)
CIE-LCHlch(30.47, 73.02, 307.56°)
OKLaboklab(42.02% 0.0627 -0.1661)
OKLCHoklch(42.02% 0.178 290.7)
XYZxyz(11.1556, 6.4277, 35.7676)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522EA4 #80A42E
analogous
#2E45A4 #522EA4 #8D2EA4
triadic
#522EA4 #A4522E #2EA452
tetradic
#522EA4 #A42E45 #80A42E #2EA48D
square
#522EA4 #A42E45 #80A42E #2EA48D
split-complementary
#522EA4 #A48D2E #45A42E
monochromatic
#221344 #3A2174 #522EA4 #6D45CB #9374D8

Accessibility & contrast

On white

9.19
#522EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#522EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522EA4
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522EA4#FFFFFF#000000##FFFFFF
##522EA41.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#364D66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #522ea4;
/* rgb */ color: rgb(82, 46, 164);
/* oklch */ color: oklch(42.0% 0.178 290.7);
Tailwind
colors: {
  custom: {
    50: '#8b6ac0',
    500: '#522ea4',
    950: '#000000',
  },
}
SCSS
$custom: #522ea4;
$custom-light: #8b6ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#522ea4",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 258.305,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42024,
    "c": 0.17752,
    "h": 290.7
  },
  "luminance": 0.06428
}

Semantic roles & 50–950 ramp

primary
#522EA4
secondary
#A7C06E
accent
#DF48B1
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #522EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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