#522AC4#522AC4

#522AC4 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.6% C 0.218 H 285.2°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#522AC4
RGBrgb(82, 42, 196)
HSLhsl(256, 65%, 47%)
HSVhsv(256, 79%, 77%)
CMYKcmyk(58.2%, 78.6%, 0%, 23.1%)
CIE-LABlab(32.78, 55.49, -73.13)
CIE-LCHlch(32.78, 91.80, 307.19°)
OKLaboklab(44.56% 0.0574 -0.2107)
OKLCHoklch(44.56% 0.218 285.2)
XYZxyz(14.2684, 7.4344, 52.8970)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522AC4 #9CC42A
analogous
#2A4FC4 #522AC4 #9F2AC4
triadic
#522AC4 #C4522A #2AC452
tetradic
#522AC4 #C42A4F #9CC42A #2AC49F
square
#522AC4 #C42A4F #9CC42A #2AC49F
split-complementary
#522AC4 #C49F2A #4FC42A
monochromatic
#28145F #3D1F92 #522AC4 #7551DA #9D84E5

Accessibility & contrast

On white

8.44
#522AC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#522AC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522AC4
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522AC4#FFFFFF#000000##FFFFFF
##522AC41.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C8
Deuteranopia (green-blind)
#0048C1
Tritanopia (blue-blind)
#115777
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #522ac4;
/* rgb */ color: rgb(82, 42, 196);
/* oklch */ color: oklch(44.6% 0.218 285.2);
Tailwind
colors: {
  custom: {
    50: '#9069d7',
    500: '#522ac4',
    950: '#000000',
  },
}
SCSS
$custom: #522ac4;
$custom-light: #9069d7;
$custom-dark: #000000;
JSON
{
  "hex": "#522ac4",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 196
  },
  "hsl": {
    "h": 255.584,
    "s": 64.706,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44555,
    "c": 0.21837,
    "h": 285.2
  },
  "luminance": 0.07435
}

Semantic roles & 50–950 ramp

primary
#522AC4
secondary
#B9CE7C
accent
#E840BC
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #522AC4

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

Preview Lab → · Contrast checker → · Palette generator →

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