#522FA6#522FA6

#522FA6 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.179 H 290.1°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#522FA6
RGBrgb(82, 47, 166)
HSLhsl(258, 56%, 42%)
HSVhsv(258, 72%, 65%)
CMYKcmyk(50.6%, 71.7%, 0%, 34.9%)
CIE-LABlab(30.83, 44.56, -58.50)
CIE-LCHlch(30.83, 73.54, 307.30°)
OKLaboklab(42.34% 0.0613 -0.1679)
OKLCHoklch(42.34% 0.179 290.1)
XYZxyz(11.3771, 6.5796, 36.7395)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FA6 #83A62F
analogous
#2F48A6 #522FA6 #8E2FA6
triadic
#522FA6 #A6522F #2FA652
tetradic
#522FA6 #A62F48 #83A62F #2FA68E
square
#522FA6 #A62F48 #83A62F #2FA68E
split-complementary
#522FA6 #A68E2F #48A62F
monochromatic
#231447 #3A2176 #522FA6 #6E47CB #9477D8

Accessibility & contrast

On white

9.07
#522FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522FA6
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FA6#FFFFFF#000000##FFFFFF
##522FA61.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#354E67
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #522fa6;
/* rgb */ color: rgb(82, 47, 166);
/* oklch */ color: oklch(42.3% 0.179 290.1);
Tailwind
colors: {
  custom: {
    50: '#8b6bc1',
    500: '#522fa6',
    950: '#000000',
  },
}
SCSS
$custom: #522fa6;
$custom-light: #8b6bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#522fa6",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 257.647,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42335,
    "c": 0.17875,
    "h": 290.1
  },
  "luminance": 0.0658
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #522FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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