#522EA0#522EA0

#522EA0 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.173 H 291.6°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#522EA0
RGBrgb(82, 46, 160)
HSLhsl(259, 55%, 40%)
HSVhsv(259, 71%, 63%)
CMYKcmyk(48.8%, 71.2%, 0%, 37.3%)
CIE-LABlab(30.12, 43.38, -56.03)
CIE-LCHlch(30.12, 70.86, 307.75°)
OKLaboklab(41.67% 0.0635 -0.1606)
OKLCHoklch(41.67% 0.173 291.6)
XYZxyz(10.8000, 6.2855, 33.8951)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522EA0 #7CA02E
analogous
#2E43A0 #522EA0 #8B2EA0
triadic
#522EA0 #A0522E #2EA052
tetradic
#522EA0 #A02E43 #7CA02E #2EA08B
square
#522EA0 #A02E43 #7CA02E #2EA08B
split-complementary
#522EA0 #A08B2E #43A02E
monochromatic
#211341 #3A2070 #522EA0 #6D42C9 #9272D6

Accessibility & contrast

On white

9.30
#522EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#522EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522EA0
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522EA0#FFFFFF#000000##FFFFFF
##522EA01.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A3
Deuteranopia (green-blind)
#00459E
Tritanopia (blue-blind)
#394B64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522ea0;
/* rgb */ color: rgb(82, 46, 160);
/* oklch */ color: oklch(41.7% 0.173 291.6);
Tailwind
colors: {
  custom: {
    50: '#8a6abd',
    500: '#522ea0',
    950: '#000000',
  },
}
SCSS
$custom: #522ea0;
$custom-light: #8a6abd;
$custom-dark: #000000;
JSON
{
  "hex": "#522ea0",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 258.947,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41671,
    "c": 0.17274,
    "h": 291.6
  },
  "luminance": 0.06286
}

Semantic roles & 50–950 ramp

primary
#522EA0
secondary
#A4BE6C
accent
#DF49AF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #522EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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