#522FA7#522FA7

#522FA7 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.180 H 289.9°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#522FA7
RGBrgb(82, 47, 167)
HSLhsl(258, 56%, 42%)
HSVhsv(258, 72%, 65%)
CMYKcmyk(50.9%, 71.9%, 0%, 34.5%)
CIE-LABlab(30.92, 44.85, -58.96)
CIE-LCHlch(30.92, 74.08, 307.26°)
OKLaboklab(42.42% 0.0611 -0.1693)
OKLCHoklch(42.42% 0.18 289.9)
XYZxyz(11.4692, 6.6164, 37.2245)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FA7 #84A72F
analogous
#2F48A7 #522FA7 #8E2FA7
triadic
#522FA7 #A7522F #2FA752
tetradic
#522FA7 #A72F48 #84A72F #2FA78E
square
#522FA7 #A72F48 #84A72F #2FA78E
split-complementary
#522FA7 #A78E2F #48A72F
monochromatic
#231447 #3B2277 #522FA7 #6E48CB #9478D9

Accessibility & contrast

On white

9.04
#522FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#522FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FA7
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FA7#FFFFFF#000000##FFFFFF
##522FA71.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0046A5
Tritanopia (blue-blind)
#344E68
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #522fa7;
/* rgb */ color: rgb(82, 47, 167);
/* oklch */ color: oklch(42.4% 0.180 289.9);
Tailwind
colors: {
  custom: {
    50: '#8b6bc2',
    500: '#522fa7',
    950: '#000000',
  },
}
SCSS
$custom: #522fa7;
$custom-light: #8b6bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#522fa7",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 257.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42424,
    "c": 0.17995,
    "h": 289.9
  },
  "luminance": 0.06617
}

Semantic roles & 50–950 ramp

primary
#522FA7
secondary
#AAC171
accent
#DF48B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #522FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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