#522EB1#522EB1

#522EB1 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.193 H 288.0°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#522EB1
RGBrgb(82, 46, 177)
HSLhsl(256, 59%, 44%)
HSVhsv(256, 74%, 69%)
CMYKcmyk(53.7%, 74%, 0%, 30.6%)
CIE-LABlab(31.63, 48.23, -63.78)
CIE-LCHlch(31.63, 79.97, 307.10°)
OKLaboklab(43.2% 0.0598 -0.1834)
OKLCHoklch(43.2% 0.193 288)
XYZxyz(12.3901, 6.9215, 42.2696)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522EB1 #8DB12E
analogous
#2E4BB1 #522EB1 #932EB1
triadic
#522EB1 #B1522E #2EB152
tetradic
#522EB1 #B12E4B #8DB12E #2EB193
square
#522EB1 #B12E4B #8DB12E #2EB193
split-complementary
#522EB1 #B1932E #4BB12E
monochromatic
#251550 #3B2180 #522EB1 #704CD0 #977CDD

Accessibility & contrast

On white

8.81
#522EB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#522EB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522EB1
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522EB1#FFFFFF#000000##FFFFFF
##522EB11.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#2C526D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #522eb1;
/* rgb */ color: rgb(82, 46, 177);
/* oklch */ color: oklch(43.2% 0.193 288.0);
Tailwind
colors: {
  custom: {
    50: '#8d6ac9',
    500: '#522eb1',
    950: '#000000',
  },
}
SCSS
$custom: #522eb1;
$custom-light: #8d6ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#522eb1",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 177
  },
  "hsl": {
    "h": 256.489,
    "s": 58.744,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43202,
    "c": 0.19288,
    "h": 288
  },
  "luminance": 0.06922
}

Semantic roles & 50–950 ramp

primary
#522EB1
secondary
#AFC675
accent
#E246B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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