#522EB9#522EB9

#522EB9 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.0% C 0.202 H 286.6°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#522EB9
RGBrgb(82, 46, 185)
HSLhsl(256, 60%, 45%)
HSVhsv(256, 75%, 73%)
CMYKcmyk(55.7%, 75.1%, 0%, 27.5%)
CIE-LABlab(32.37, 50.51, -67.32)
CIE-LCHlch(32.37, 84.16, 306.88°)
OKLaboklab(43.95% 0.0578 -0.1937)
OKLCHoklch(43.95% 0.202 286.6)
XYZxyz(13.2110, 7.2499, 46.5928)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522EB9 #95B92E
analogous
#2E4FB9 #522EB9 #982EB9
triadic
#522EB9 #B9522E #2EB952
tetradic
#522EB9 #B92E4F #95B92E #2EB998
square
#522EB9 #B92E4F #95B92E #2EB998
split-complementary
#522EB9 #B9982E #4FB92E
monochromatic
#271657 #3C2288 #522EB9 #7351D4 #9A82E0

Accessibility & contrast

On white

8.57
#522EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#522EB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522EB9
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522EB9#FFFFFF#000000##FFFFFF
##522EB91.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BD
Deuteranopia (green-blind)
#0048B6
Tritanopia (blue-blind)
#235572
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #522eb9;
/* rgb */ color: rgb(82, 46, 185);
/* oklch */ color: oklch(44.0% 0.202 286.6);
Tailwind
colors: {
  custom: {
    50: '#8e6bcf',
    500: '#522eb9',
    950: '#000000',
  },
}
SCSS
$custom: #522eb9;
$custom-light: #8e6bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#522eb9",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 255.54,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4395,
    "c": 0.20216,
    "h": 286.6
  },
  "luminance": 0.07251
}

Semantic roles & 50–950 ramp

primary
#522EB9
secondary
#B4C97A
accent
#E344BA
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #522EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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