#522AB3#522AB3

#522AB3 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.199 H 288.2°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#522AB3
RGBrgb(82, 42, 179)
HSLhsl(258, 62%, 43%)
HSVhsv(258, 77%, 70%)
CMYKcmyk(54.2%, 76.5%, 0%, 29.8%)
CIE-LABlab(31.12, 50.76, -65.80)
CIE-LCHlch(31.12, 83.11, 307.65°)
OKLaboklab(42.9% 0.0623 -0.1893)
OKLCHoklch(42.9% 0.199 288.2)
XYZxyz(12.4419, 6.7038, 43.2775)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522AB3 #8BB32A
analogous
#2A46B3 #522AB3 #962AB3
triadic
#522AB3 #B3522A #2AB352
tetradic
#522AB3 #B32A46 #8BB32A #2AB396
square
#522AB3 #B32A46 #8BB32A #2AB396
split-complementary
#522AB3 #B3962A #46B32A
monochromatic
#251350 #3B1E81 #522AB3 #7046D4 #9678DF

Accessibility & contrast

On white

8.97
#522AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#522AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522AB3
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522AB3#FFFFFF#000000##FFFFFF
##522AB31.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#2A516D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #522ab3;
/* rgb */ color: rgb(82, 42, 179);
/* oklch */ color: oklch(42.9% 0.199 288.2);
Tailwind
colors: {
  custom: {
    50: '#8d68cb',
    500: '#522ab3',
    950: '#000000',
  },
}
SCSS
$custom: #522ab3;
$custom-light: #8d68cb;
$custom-dark: #000000;
JSON
{
  "hex": "#522ab3",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 257.518,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42904,
    "c": 0.19928,
    "h": 288.2
  },
  "luminance": 0.06704
}

Semantic roles & 50–950 ramp

primary
#522AB3
secondary
#AEC772
accent
#E543B6
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #522AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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