#522FA4#522FA4

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

Color values

HEX#522FA4
RGBrgb(82, 47, 164)
HSLhsl(258, 55%, 41%)
HSVhsv(258, 71%, 64%)
CMYKcmyk(50%, 71.3%, 0%, 35.7%)
CIE-LABlab(30.66, 43.99, -57.57)
CIE-LCHlch(30.66, 72.45, 307.38°)
OKLaboklab(42.16% 0.0617 -0.1652)
OKLCHoklch(42.16% 0.176 290.5)
XYZxyz(11.1951, 6.5068, 35.7808)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FA4 #81A42F
analogous
#2F47A4 #522FA4 #8D2FA4
triadic
#522FA4 #A4522F #2FA452
tetradic
#522FA4 #A42F47 #81A42F #2FA48D
square
#522FA4 #A42F47 #81A42F #2FA48D
split-complementary
#522FA4 #A48D2F #47A42F
monochromatic
#221445 #3A2174 #522FA4 #6E46CA #9376D8

Accessibility & contrast

On white

9.12
#522FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#522FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FA4
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FA4#FFFFFF#000000##FFFFFF
##522FA41.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.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: #522fa4;
/* rgb */ color: rgb(82, 47, 164);
/* oklch */ color: oklch(42.2% 0.176 290.5);
Tailwind
colors: {
  custom: {
    50: '#8b6bc0',
    500: '#522fa4',
    950: '#000000',
  },
}
SCSS
$custom: #522fa4;
$custom-light: #8b6bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#522fa4",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 257.949,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42158,
    "c": 0.17635,
    "h": 290.5
  },
  "luminance": 0.06507
}

Semantic roles & 50–950 ramp

primary
#522FA4
secondary
#A8C06F
accent
#DF49B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #522FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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