#522AB1#522AB1

#522AB1 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.197 H 288.6°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#522AB1
RGBrgb(82, 42, 177)
HSLhsl(258, 62%, 43%)
HSVhsv(258, 76%, 69%)
CMYKcmyk(53.7%, 76.3%, 0%, 30.6%)
CIE-LABlab(30.93, 50.20, -64.92)
CIE-LCHlch(30.93, 82.07, 307.71°)
OKLaboklab(42.71% 0.0629 -0.1867)
OKLCHoklch(42.71% 0.197 288.6)
XYZxyz(12.2411, 6.6235, 42.2199)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522AB1 #89B12A
analogous
#2A45B1 #522AB1 #952AB1
triadic
#522AB1 #B1522A #2AB152
tetradic
#522AB1 #B12A45 #89B12A #2AB195
square
#522AB1 #B12A45 #89B12A #2AB195
split-complementary
#522AB1 #B1952A #45B12A
monochromatic
#24134E #3B1E80 #522AB1 #6F45D3 #9677DF

Accessibility & contrast

On white

9.03
#522AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522AB1
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522AB1#FFFFFF#000000##FFFFFF
##522AB11.009.032.329.03
#FFFFFF9.031.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#0045AE
Tritanopia (blue-blind)
#2C506C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #522ab1;
/* rgb */ color: rgb(82, 42, 177);
/* oklch */ color: oklch(42.7% 0.197 288.6);
Tailwind
colors: {
  custom: {
    50: '#8d68c9',
    500: '#522ab1',
    950: '#000000',
  },
}
SCSS
$custom: #522ab1;
$custom-light: #8d68c9;
$custom-dark: #000000;
JSON
{
  "hex": "#522ab1",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 257.778,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42714,
    "c": 0.197,
    "h": 288.6
  },
  "luminance": 0.06624
}

Semantic roles & 50–950 ramp

primary
#522AB1
secondary
#ADC670
accent
#E543B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #522AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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