#522E9B#522E9B

#522E9B is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.167 H 292.7°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#522E9B
RGBrgb(82, 46, 155)
HSLhsl(260, 54%, 39%)
HSVhsv(260, 70%, 61%)
CMYKcmyk(47.1%, 70.3%, 0%, 39.2%)
CIE-LABlab(29.70, 41.95, -53.68)
CIE-LCHlch(29.70, 68.13, 308.01°)
OKLaboklab(41.24% 0.0644 -0.1537)
OKLCHoklch(41.24% 0.167 292.7)
XYZxyz(10.3714, 6.1141, 31.6377)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E9B #779B2E
analogous
#2E409B #522E9B #892E9B
triadic
#522E9B #9B522E #2E9B52
tetradic
#522E9B #9B2E40 #779B2E #2E9B89
square
#522E9B #9B2E40 #779B2E #2E9B89
split-complementary
#522E9B #9B892E #409B2E
monochromatic
#20123D #39206C #522E9B #6C40C6 #916FD4

Accessibility & contrast

On white

9.45
#522E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#522E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522E9B
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522E9B#FFFFFF#000000##FFFFFF
##522E9B1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#3C4961
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #522e9b;
/* rgb */ color: rgb(82, 46, 155);
/* oklch */ color: oklch(41.2% 0.167 292.7);
Tailwind
colors: {
  custom: {
    50: '#896ab9',
    500: '#522e9b',
    950: '#000000',
  },
}
SCSS
$custom: #522e9b;
$custom-light: #896ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#522e9b",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 259.817,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41238,
    "c": 0.1667,
    "h": 292.7
  },
  "luminance": 0.06114
}

Semantic roles & 50–950 ramp

primary
#522E9B
secondary
#A0BC69
accent
#DE4AAD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #522E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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