#522AC3#522AC3

#522AC3 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.5% C 0.217 H 285.4°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#522AC3
RGBrgb(82, 42, 195)
HSLhsl(256, 65%, 46%)
HSVhsv(256, 78%, 76%)
CMYKcmyk(57.9%, 78.5%, 0%, 23.5%)
CIE-LABlab(32.68, 55.22, -72.71)
CIE-LCHlch(32.68, 91.30, 307.22°)
OKLaboklab(44.46% 0.0577 -0.2095)
OKLCHoklch(44.46% 0.217 285.4)
XYZxyz(14.1550, 7.3890, 52.2995)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522AC3 #9BC32A
analogous
#2A4FC3 #522AC3 #9F2AC3
triadic
#522AC3 #C3522A #2AC352
tetradic
#522AC3 #C32A4F #9BC32A #2AC39F
square
#522AC3 #C32A4F #9BC32A #2AC39F
split-complementary
#522AC3 #C39F2A #4FC32A
monochromatic
#28145E #3D1F91 #522AC3 #7451D9 #9D83E4

Accessibility & contrast

On white

8.47
#522AC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#522AC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522AC3
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522AC3#FFFFFF#000000##FFFFFF
##522AC31.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C7
Deuteranopia (green-blind)
#0048C0
Tritanopia (blue-blind)
#135776
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #522ac3;
/* rgb */ color: rgb(82, 42, 195);
/* oklch */ color: oklch(44.5% 0.217 285.4);
Tailwind
colors: {
  custom: {
    50: '#9069d6',
    500: '#522ac3',
    950: '#000000',
  },
}
SCSS
$custom: #522ac3;
$custom-light: #9069d6;
$custom-dark: #000000;
JSON
{
  "hex": "#522ac3",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 195
  },
  "hsl": {
    "h": 255.686,
    "s": 64.557,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44456,
    "c": 0.21726,
    "h": 285.4
  },
  "luminance": 0.0739
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #522AC3

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

Preview Lab → · Contrast checker → · Palette generator →

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