#522AC6#522AC6

#522AC6 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.8% C 0.221 H 284.9°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#522AC6
RGBrgb(82, 42, 198)
HSLhsl(255, 65%, 47%)
HSVhsv(255, 79%, 78%)
CMYKcmyk(58.6%, 78.8%, 0%, 22.4%)
CIE-LABlab(32.98, 56.05, -73.97)
CIE-LCHlch(32.98, 92.81, 307.15°)
OKLaboklab(44.75% 0.0568 -0.2131)
OKLCHoklch(44.75% 0.221 284.9)
XYZxyz(14.4976, 7.5261, 54.1039)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522AC6 #9EC62A
analogous
#2A50C6 #522AC6 #A02AC6
triadic
#522AC6 #C6522A #2AC652
tetradic
#522AC6 #C62A50 #9EC62A #2AC6A0
square
#522AC6 #C62A50 #9EC62A #2AC6A0
split-complementary
#522AC6 #C6A02A #50C62A
monochromatic
#281561 #3D1F94 #522AC6 #7653DA #9E85E5

Accessibility & contrast

On white

8.38
#522AC6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#522AC6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522AC6
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522AC6#FFFFFF#000000##FFFFFF
##522AC61.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CA
Deuteranopia (green-blind)
#0049C3
Tritanopia (blue-blind)
#0B5878
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #522ac6;
/* rgb */ color: rgb(82, 42, 198);
/* oklch */ color: oklch(44.8% 0.221 284.9);
Tailwind
colors: {
  custom: {
    50: '#9069d9',
    500: '#522ac6',
    950: '#000000',
  },
}
SCSS
$custom: #522ac6;
$custom-light: #9069d9;
$custom-dark: #000000;
JSON
{
  "hex": "#522ac6",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 198
  },
  "hsl": {
    "h": 255.385,
    "s": 65,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44753,
    "c": 0.22059,
    "h": 284.9
  },
  "luminance": 0.07527
}

Semantic roles & 50–950 ramp

primary
#522AC6
secondary
#BACE7D
accent
#E840BD
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #522AC6

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

Preview Lab → · Contrast checker → · Palette generator →

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