#522AA7#522AA7

#522AA7 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.186 H 290.7°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#522AA7
RGBrgb(82, 42, 167)
HSLhsl(259, 60%, 41%)
HSVhsv(259, 75%, 65%)
CMYKcmyk(50.9%, 74.9%, 0%, 34.5%)
CIE-LABlab(30.01, 47.41, -60.44)
CIE-LCHlch(30.01, 76.82, 308.11°)
OKLaboklab(41.78% 0.0655 -0.1736)
OKLCHoklch(41.78% 0.186 290.7)
XYZxyz(11.2807, 6.2393, 37.1616)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522AA7 #7FA72A
analogous
#2A40A7 #522AA7 #902AA7
triadic
#522AA7 #A7522A #2AA752
tetradic
#522AA7 #A72A40 #7FA72A #2AA790
square
#522AA7 #A72A40 #7FA72A #2AA790
split-complementary
#522AA7 #A7902A #40A72A
monochromatic
#221145 #3A1E76 #522AA7 #6D3FCF #9270DB

Accessibility & contrast

On white

9.34
#522AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#522AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522AA7
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522AA7#FFFFFF#000000##FFFFFF
##522AA71.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#354C66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522aa7;
/* rgb */ color: rgb(82, 42, 167);
/* oklch */ color: oklch(41.8% 0.186 290.7);
Tailwind
colors: {
  custom: {
    50: '#8b68c2',
    500: '#522aa7',
    950: '#000000',
  },
}
SCSS
$custom: #522aa7;
$custom-light: #8b68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#522aa7",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 259.2,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41781,
    "c": 0.18553,
    "h": 290.7
  },
  "luminance": 0.0624
}

Semantic roles & 50–950 ramp

primary
#522AA7
secondary
#A6C26B
accent
#E345B0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #522AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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