#522BAE#522BAE

#522BAE is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.193 H 289.1°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#522BAE
RGBrgb(82, 43, 174)
HSLhsl(258, 60%, 43%)
HSVhsv(258, 75%, 68%)
CMYKcmyk(52.9%, 75.3%, 0%, 31.8%)
CIE-LABlab(30.82, 48.88, -63.31)
CIE-LCHlch(30.82, 79.98, 307.67°)
OKLaboklab(42.55% 0.0629 -0.182)
OKLCHoklch(42.55% 0.193 289.1)
XYZxyz(11.9813, 6.5770, 40.6744)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522BAE #87AE2B
analogous
#2B45AE #522BAE #942BAE
triadic
#522BAE #AE522B #2BAE52
tetradic
#522BAE #AE2B45 #87AE2B #2BAE94
square
#522BAE #AE2B45 #87AE2B #2BAE94
split-complementary
#522BAE #AE942B #45AE2B
monochromatic
#24134C #3B1F7D #522BAE #6F45D1 #9576DD

Accessibility & contrast

On white

9.07
#522BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522BAE
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522BAE#FFFFFF#000000##FFFFFF
##522BAE1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#0045AC
Tritanopia (blue-blind)
#2F4F6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #522bae;
/* rgb */ color: rgb(82, 43, 174);
/* oklch */ color: oklch(42.6% 0.193 289.1);
Tailwind
colors: {
  custom: {
    50: '#8c69c7',
    500: '#522bae',
    950: '#000000',
  },
}
SCSS
$custom: #522bae;
$custom-light: #8c69c7;
$custom-dark: #000000;
JSON
{
  "hex": "#522bae",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 174
  },
  "hsl": {
    "h": 257.863,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42551,
    "c": 0.19255,
    "h": 289.1
  },
  "luminance": 0.06578
}

Semantic roles & 50–950 ramp

primary
#522BAE
secondary
#ACC570
accent
#E444B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #522BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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