#522EA7#522EA7

#522EA7 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.181 H 290.0°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#522EA7
RGBrgb(82, 46, 167)
HSLhsl(258, 57%, 42%)
HSVhsv(258, 72%, 65%)
CMYKcmyk(50.9%, 72.5%, 0%, 34.5%)
CIE-LABlab(30.73, 45.37, -59.26)
CIE-LCHlch(30.73, 74.64, 307.44°)
OKLaboklab(42.29% 0.062 -0.1701)
OKLCHoklch(42.29% 0.181 290)
XYZxyz(11.4297, 6.5374, 37.2113)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522EA7 #83A72E
analogous
#2E47A7 #522EA7 #8F2EA7
triadic
#522EA7 #A7522E #2EA752
tetradic
#522EA7 #A72E47 #83A72E #2EA78F
square
#522EA7 #A72E47 #83A72E #2EA78F
split-complementary
#522EA7 #A78F2E #47A72E
monochromatic
#231447 #3A2177 #522EA7 #6E46CC #9476D9

Accessibility & contrast

On white

9.10
#522EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#522EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522EA7
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522EA7#FFFFFF#000000##FFFFFF
##522EA71.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#344E67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #522ea7;
/* rgb */ color: rgb(82, 46, 167);
/* oklch */ color: oklch(42.3% 0.181 290.0);
Tailwind
colors: {
  custom: {
    50: '#8b6ac2',
    500: '#522ea7',
    950: '#000000',
  },
}
SCSS
$custom: #522ea7;
$custom-light: #8b6ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#522ea7",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 257.851,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42291,
    "c": 0.18109,
    "h": 290
  },
  "luminance": 0.06538
}

Semantic roles & 50–950 ramp

primary
#522EA7
secondary
#A9C170
accent
#E048B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #522EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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