#522EB7#522EB7

#522EB7 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.200 H 286.9°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#522EB7
RGBrgb(82, 46, 183)
HSLhsl(256, 60%, 45%)
HSVhsv(256, 75%, 72%)
CMYKcmyk(55.2%, 74.9%, 0%, 28.2%)
CIE-LABlab(32.18, 49.94, -66.44)
CIE-LCHlch(32.18, 83.12, 306.93°)
OKLaboklab(43.76% 0.0583 -0.1912)
OKLCHoklch(43.76% 0.2 286.9)
XYZxyz(13.0014, 7.1660, 45.4887)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522EB7 #93B72E
analogous
#2E4FB7 #522EB7 #962EB7
triadic
#522EB7 #B7522E #2EB752
tetradic
#522EB7 #B72E4F #93B72E #2EB796
square
#522EB7 #B72E4F #93B72E #2EB796
split-complementary
#522EB7 #B7962E #4FB72E
monochromatic
#261555 #3C2286 #522EB7 #724FD3 #9980DF

Accessibility & contrast

On white

8.63
#522EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#522EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522EB7
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522EB7#FFFFFF#000000##FFFFFF
##522EB71.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBB
Deuteranopia (green-blind)
#0048B4
Tritanopia (blue-blind)
#265470
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #522eb7;
/* rgb */ color: rgb(82, 46, 183);
/* oklch */ color: oklch(43.8% 0.200 286.9);
Tailwind
colors: {
  custom: {
    50: '#8d6bce',
    500: '#522eb7',
    950: '#000000',
  },
}
SCSS
$custom: #522eb7;
$custom-light: #8d6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#522eb7",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 255.766,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43761,
    "c": 0.19986,
    "h": 286.9
  },
  "luminance": 0.07167
}

Semantic roles & 50–950 ramp

primary
#522EB7
secondary
#B3C879
accent
#E345B9
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #522EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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