#522EB2#522EB2

#522EB2 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.194 H 287.9°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#522EB2
RGBrgb(82, 46, 178)
HSLhsl(256, 59%, 44%)
HSVhsv(256, 74%, 70%)
CMYKcmyk(53.9%, 74.2%, 0%, 30.2%)
CIE-LABlab(31.72, 48.52, -64.23)
CIE-LCHlch(31.72, 80.49, 307.07°)
OKLaboklab(43.29% 0.0595 -0.1847)
OKLCHoklch(43.29% 0.194 287.9)
XYZxyz(12.4902, 6.9616, 42.7964)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522EB2 #8EB22E
analogous
#2E4CB2 #522EB2 #942EB2
triadic
#522EB2 #B2522E #2EB252
tetradic
#522EB2 #B22E4C #8EB22E #2EB294
square
#522EB2 #B22E4C #8EB22E #2EB294
split-complementary
#522EB2 #B2942E #4CB22E
monochromatic
#251551 #3C2181 #522EB2 #704CD1 #977DDD

Accessibility & contrast

On white

8.78
#522EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#522EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522EB2
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522EB2#FFFFFF#000000##FFFFFF
##522EB21.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#2B526E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #522eb2;
/* rgb */ color: rgb(82, 46, 178);
/* oklch */ color: oklch(43.3% 0.194 287.9);
Tailwind
colors: {
  custom: {
    50: '#8d6bca',
    500: '#522eb2',
    950: '#000000',
  },
}
SCSS
$custom: #522eb2;
$custom-light: #8d6bca;
$custom-dark: #000000;
JSON
{
  "hex": "#522eb2",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 256.364,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43294,
    "c": 0.19405,
    "h": 287.9
  },
  "luminance": 0.06962
}

Semantic roles & 50–950 ramp

primary
#522EB2
secondary
#B0C676
accent
#E246B7
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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