#522BB9#522BB9

#522BB9 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.6% C 0.205 H 287.0°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#522BB9
RGBrgb(82, 43, 185)
HSLhsl(256, 62%, 45%)
HSVhsv(256, 77%, 73%)
CMYKcmyk(55.7%, 76.8%, 0%, 27.5%)
CIE-LABlab(31.86, 51.96, -68.15)
CIE-LCHlch(31.86, 85.70, 307.32°)
OKLaboklab(43.59% 0.0599 -0.1962)
OKLCHoklch(43.59% 0.205 287)
XYZxyz(13.0979, 7.0237, 46.5551)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522BB9 #92B92B
analogous
#2B4BB9 #522BB9 #992BB9
triadic
#522BB9 #B9522B #2BB952
tetradic
#522BB9 #B92B4B #92B92B #2BB999
square
#522BB9 #B92B4B #92B92B #2BB999
split-complementary
#522BB9 #B9992B #4BB92B
monochromatic
#261456 #3C1F87 #522BB9 #724CD5 #997EE1

Accessibility & contrast

On white

8.73
#522BB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#522BB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522BB9
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522BB9#FFFFFF#000000##FFFFFF
##522BB91.008.732.408.73
#FFFFFF8.731.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBD
Deuteranopia (green-blind)
#0047B6
Tritanopia (blue-blind)
#245371
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #522bb9;
/* rgb */ color: rgb(82, 43, 185);
/* oklch */ color: oklch(43.6% 0.205 287.0);
Tailwind
colors: {
  custom: {
    50: '#8e69cf',
    500: '#522bb9',
    950: '#000000',
  },
}
SCSS
$custom: #522bb9;
$custom-light: #8e69cf;
$custom-dark: #000000;
JSON
{
  "hex": "#522bb9",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 185
  },
  "hsl": {
    "h": 256.479,
    "s": 62.281,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43593,
    "c": 0.20511,
    "h": 287
  },
  "luminance": 0.07024
}

Semantic roles & 50–950 ramp

primary
#522BB9
secondary
#B3C976
accent
#E542B9
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #522BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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