#522E9F#522E9F

#522E9F is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.172 H 291.8°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#522E9F
RGBrgb(82, 46, 159)
HSLhsl(259, 55%, 40%)
HSVhsv(259, 71%, 62%)
CMYKcmyk(48.4%, 71.1%, 0%, 37.6%)
CIE-LABlab(30.04, 43.09, -55.56)
CIE-LCHlch(30.04, 70.31, 307.80°)
OKLaboklab(41.58% 0.0637 -0.1593)
OKLCHoklch(41.58% 0.172 291.8)
XYZxyz(10.7129, 6.2506, 33.4362)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E9F #7B9F2E
analogous
#2E429F #522E9F #8A2E9F
triadic
#522E9F #9F522E #2E9F52
tetradic
#522E9F #9F2E42 #7B9F2E #2E9F8A
square
#522E9F #9F2E42 #7B9F2E #2E9F8A
split-complementary
#522E9F #9F8A2E #429F2E
monochromatic
#211340 #3A2070 #522E9F #6D42C8 #9171D6

Accessibility & contrast

On white

9.33
#522E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#522E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522E9F
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522E9F#FFFFFF#000000##FFFFFF
##522E9F1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#3A4B63
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522e9f;
/* rgb */ color: rgb(82, 46, 159);
/* oklch */ color: oklch(41.6% 0.172 291.8);
Tailwind
colors: {
  custom: {
    50: '#8a6abc',
    500: '#522e9f',
    950: '#000000',
  },
}
SCSS
$custom: #522e9f;
$custom-light: #8a6abc;
$custom-dark: #000000;
JSON
{
  "hex": "#522e9f",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 259.115,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41584,
    "c": 0.17152,
    "h": 291.8
  },
  "luminance": 0.06251
}

Semantic roles & 50–950 ramp

primary
#522E9F
secondary
#A3BE6B
accent
#DE49AF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #522E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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