#522FA3#522FA3

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

Color values

HEX#522FA3
RGBrgb(82, 47, 163)
HSLhsl(258, 55%, 41%)
HSVhsv(258, 71%, 64%)
CMYKcmyk(49.7%, 71.2%, 0%, 36.1%)
CIE-LABlab(30.57, 43.70, -57.11)
CIE-LCHlch(30.57, 71.91, 307.42°)
OKLaboklab(42.07% 0.0619 -0.1638)
OKLCHoklch(42.07% 0.175 290.7)
XYZxyz(11.1052, 6.4708, 35.3071)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FA3 #80A32F
analogous
#2F46A3 #522FA3 #8C2FA3
triadic
#522FA3 #A3522F #2FA352
tetradic
#522FA3 #A32F46 #80A32F #2FA38C
square
#522FA3 #A32F46 #80A32F #2FA38C
split-complementary
#522FA3 #A38C2F #46A32F
monochromatic
#221444 #3A2173 #522FA3 #6D46CA #9375D7

Accessibility & contrast

On white

9.15
#522FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522FA3
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FA3#FFFFFF#000000##FFFFFF
##522FA31.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#0045A1
Tritanopia (blue-blind)
#374D65
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #522fa3;
/* rgb */ color: rgb(82, 47, 163);
/* oklch */ color: oklch(42.1% 0.175 290.7);
Tailwind
colors: {
  custom: {
    50: '#8a6abf',
    500: '#522fa3',
    950: '#000000',
  },
}
SCSS
$custom: #522fa3;
$custom-light: #8a6abf;
$custom-dark: #000000;
JSON
{
  "hex": "#522fa3",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 258.103,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4207,
    "c": 0.17515,
    "h": 290.7
  },
  "luminance": 0.06471
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #522FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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