#522AC1#522AC1

#522AC1 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.3% C 0.215 H 285.7°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#522AC1
RGBrgb(82, 42, 193)
HSLhsl(256, 64%, 46%)
HSVhsv(256, 78%, 76%)
CMYKcmyk(57.5%, 78.2%, 0%, 24.3%)
CIE-LABlab(32.48, 54.66, -71.86)
CIE-LCHlch(32.48, 90.28, 307.26°)
OKLaboklab(44.26% 0.0583 -0.207)
OKLCHoklch(44.26% 0.215 285.7)
XYZxyz(13.9304, 7.2992, 51.1166)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522AC1 #99C12A
analogous
#2A4DC1 #522AC1 #9D2AC1
triadic
#522AC1 #C1522A #2AC152
tetradic
#522AC1 #C12A4D #99C12A #2AC19D
square
#522AC1 #C12A4D #99C12A #2AC19D
split-complementary
#522AC1 #C19D2A #4DC12A
monochromatic
#27145C #3D1F8F #522AC1 #744FD9 #9C82E4

Accessibility & contrast

On white

8.54
#522AC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#522AC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522AC1
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522AC1#FFFFFF#000000##FFFFFF
##522AC11.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C5
Deuteranopia (green-blind)
#0048BE
Tritanopia (blue-blind)
#175675
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #522ac1;
/* rgb */ color: rgb(82, 42, 193);
/* oklch */ color: oklch(44.3% 0.215 285.7);
Tailwind
colors: {
  custom: {
    50: '#8f69d5',
    500: '#522ac1',
    950: '#000000',
  },
}
SCSS
$custom: #522ac1;
$custom-light: #8f69d5;
$custom-dark: #000000;
JSON
{
  "hex": "#522ac1",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 193
  },
  "hsl": {
    "h": 255.894,
    "s": 64.255,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44259,
    "c": 0.21504,
    "h": 285.7
  },
  "luminance": 0.073
}

Semantic roles & 50–950 ramp

primary
#522AC1
secondary
#B7CD7A
accent
#E741BB
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #522AC1

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

Preview Lab → · Contrast checker → · Palette generator →

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