#522EA5#522EA5

#522EA5 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.179 H 290.5°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#522EA5
RGBrgb(82, 46, 165)
HSLhsl(258, 56%, 41%)
HSVhsv(258, 72%, 65%)
CMYKcmyk(50.3%, 72.1%, 0%, 35.3%)
CIE-LABlab(30.55, 44.80, -58.34)
CIE-LCHlch(30.55, 73.56, 307.52°)
OKLaboklab(42.11% 0.0625 -0.1674)
OKLCHoklch(42.11% 0.179 290.5)
XYZxyz(11.2463, 6.4640, 36.2451)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522EA5 #81A52E
analogous
#2E46A5 #522EA5 #8E2EA5
triadic
#522EA5 #A5522E #2EA552
tetradic
#522EA5 #A52E46 #81A52E #2EA58E
square
#522EA5 #A52E46 #81A52E #2EA58E
split-complementary
#522EA5 #A58E2E #46A52E
monochromatic
#221345 #3A2175 #522EA5 #6E45CB #9375D8

Accessibility & contrast

On white

9.16
#522EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522EA5
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522EA5#FFFFFF#000000##FFFFFF
##522EA51.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522ea5;
/* rgb */ color: rgb(82, 46, 165);
/* oklch */ color: oklch(42.1% 0.179 290.5);
Tailwind
colors: {
  custom: {
    50: '#8b6ac1',
    500: '#522ea5',
    950: '#000000',
  },
}
SCSS
$custom: #522ea5;
$custom-light: #8b6ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#522ea5",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 258.151,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42112,
    "c": 0.17872,
    "h": 290.5
  },
  "luminance": 0.06464
}

Semantic roles & 50–950 ramp

primary
#522EA5
secondary
#A8C06F
accent
#E048B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #522EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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