Black Friday 2026: design deals we check every day. See the deals →

#5A21A5 Hex Color

Online color picker to view shades, tints, color codes, and complementary colors

 
#5a21a5
Hex color #5a21a5 graphic
#5a21a5 is a dark, saturated purple with a cool violet undertone and low lightness. Its weight brings mystery, seriousness, and spiritual depth to moody designs, luxury branding, gaming interfaces, and rich backgrounds. Use it as a dominant base with restrained brighter accents; white text has about 9.6:1 contrast, supporting readable small body text. The hex code is #5a21a5.

Color Conversions

Hex color #5a21a5 converted to various formats including hex, rgb, hsl, and more.

  • Hex#5a21a5
  • RGBrgb(90, 33, 165)
  • RGB Percentagesrgb(35%, 13%, 65%)
  • CMYK45%, 80%, 0%, 35%
  • HSLhsl(266, 67%, 39%)
  • HSVhsv(266, 80%, 65%)
  • OKLCHoklch(41.5% 0.193 296.3)
  • LCH29, 80, 311
  • LAB29, 52, -60
  • LUV29, 9, -81
  • XYZ12, 6, 36
  • Closest Tailwind Colorviolet-900

Color Variations

Variations of this color including shaded, tints, and complementary colors.

Brighten

Tints of the color as they brighten toward white.

#5a21a5
#683daf
#7654ba
#866ac3
#967fcd
#a694d6
#b7a9df
#c8bee7
#dad4f0
#ece9f7

Darken

Shades of the color as they darken toward black.

#5a21a5
#4d1b8f
#411679
#351065
#290b51
#1e063d
#13032b
#09011a
#03000a
#000001

Desaturate

Desaturated versions of this color.

#5a21a5
#5d30a2
#603ca0
#63479d
#675099
#6b5996
#6f6192
#73698e
#77718a
#7b7985

Hue

Various hues of this color.

#a52e21
#a5214b
#a52182
#9121a5
#5a21a5
#2321a5
#2156a5
#218da5
#21a586

Analogous

Analogous color palette of this color, meaning colors that are next to each other on the color wheel.

#5a21a5
#2521a5
#4021a5

Monochromatic

Monochromatic colors for this color, monochromatic colors are all of the same hue.

#5a21a5
#7129cf
#8832fa
#140725
#2c1050
#43187a

Complementary

Complementary colors for this color, complementary colors are opposites on the color wheel.

#5a21a5
#6ca521

Split Complement

Split-complementary colors which use adjacent colors of this color’s complementary color.

#5a21a5
#a52152
#21a525

Triad

Triad colors which pull themselves in a triangle across the color wheel.

#5a21a5
#a55a21
#21a55a

Tetrad

Tetrad colors which pull themselves in a square shape across the color wheel.

#5a21a5
#a5212a
#6ca521
#21a59c

Contrast Checker

Contrast test results for the color #5a21a5 on black and white backgrounds.
Open in contrast checker →

White Background

Passes AAA
Example Headline (24px)

The font-size of this text is 18.5px. Click anywhere to edit this text. Lorem Ipsum is simply dummy text of the printing and typesetting industry.

Black Background

Fails WCAG
Example Headline (24px)

The font-size of this text is 18.5px. Click anywhere to edit this text. Lorem Ipsum is simply dummy text of the printing and typesetting industry.

Color Blindness Simulation

See how #5a21a5 appears to people with color vision deficiency (CVD).

Normal Vision
#5a21a5
Protanopia
#2b2ba5
Red-blind (~1% of males)
Deuteranopia
#3434a3
Green-blind (~1% of males)
Tritanopia
#493232
Blue-blind (very rare)
Achromatopsia
#373737
Total color blindness

Questions about #5a21a5

What is #5a21a5 in RGB, HSL and CMYK?
In RGB, #5a21a5 is rgb(90, 33, 165), in HSL hsl(266, 67%, 39%) and in CMYK 45%, 80%, 0%, 35%. Browse more shades of purple with names and hex codes.
What colors pair well with #5a21a5?
#5a21a5 pairs well with muted gold, warm cream, and charcoal, which soften its cool depth while giving its strong saturation room to stand out without making the palette feel flat. Use brighter accents sparingly for a refined result.
Is #5a21a5 readable on white or black?
#5a21a5 has a 9.56:1 contrast ratio on white and 2.19:1 on black. WCAG asks for 4.5:1 for body text and 3:1 for large text, so on white it works for body text and on black it is too faint for text. Try other pairs in the contrast checker.