#522BA1#522BA1

#522BA1 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.177 H 291.9°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#522BA1
RGBrgb(82, 43, 161)
HSLhsl(260, 58%, 40%)
HSVhsv(260, 73%, 63%)
CMYKcmyk(49.1%, 73.3%, 0%, 36.9%)
CIE-LABlab(29.65, 45.22, -57.40)
CIE-LCHlch(29.65, 73.08, 308.23°)
OKLaboklab(41.36% 0.0661 -0.1647)
OKLCHoklch(41.36% 0.177 291.9)
XYZxyz(10.7748, 6.0944, 34.3199)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522BA1 #7AA12B
analogous
#2B3FA1 #522BA1 #8D2BA1
triadic
#522BA1 #A1522B #2BA152
tetradic
#522BA1 #A12B3F #7AA12B #2BA18D
square
#522BA1 #A12B3F #7AA12B #2BA18D
split-complementary
#522BA1 #A18D2B #3FA12B
monochromatic
#211140 #391E71 #522BA1 #6D3ECB #916ED8

Accessibility & contrast

On white

9.46
#522BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#522BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522BA1
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522BA1#FFFFFF#000000##FFFFFF
##522BA11.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#394A63
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #522ba1;
/* rgb */ color: rgb(82, 43, 161);
/* oklch */ color: oklch(41.4% 0.177 291.9);
Tailwind
colors: {
  custom: {
    50: '#8a68be',
    500: '#522ba1',
    950: '#000000',
  },
}
SCSS
$custom: #522ba1;
$custom-light: #8a68be;
$custom-dark: #000000;
JSON
{
  "hex": "#522ba1",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 259.831,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.41363,
    "c": 0.17744,
    "h": 291.9
  },
  "luminance": 0.06095
}

Semantic roles & 50–950 ramp

primary
#522BA1
secondary
#A3BF69
accent
#E147AE
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #522BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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