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

#5A1FA3 Hex Color

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

 
#5a1fa3
Hex color #5a1fa3 graphic
This saturated violet #5a1fa3 commands attention with its dark, serious character. It functions well as a background for dark-mode interfaces, where it offers high contrast against white text. Because the color is intense, treat it as a supporting tone or accent rather than a dominant fill. The hex code for this deep purple is #5a1fa3.

Color Conversions

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

  • Hex#5a1fa3
  • RGBrgb(90, 31, 163)
  • RGB Percentagesrgb(35%, 12%, 64%)
  • CMYK45%, 81%, 0%, 36%
  • HSLhsl(267, 68%, 38%)
  • HSVhsv(267, 81%, 64%)
  • OKLCHoklch(41.1% 0.192 297.1)
  • LCH29, 80, 311
  • LAB29, 52, -60
  • LUV29, 9, -80
  • XYZ11, 6, 35
  • 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.

#5a1fa3
#683cae
#7753b8
#8669c2
#967ecc
#a693d5
#b7a9de
#c9bee7
#dad3ef
#ede9f7

Darken

Shades of the color as they darken toward black.

#5a1fa3
#4d198d
#411478
#350f63
#290a4f
#1e063c
#13032a
#090119
#03000a
#000001

Desaturate

Desaturated versions of this color.

#5a1fa3
#5d2fa1
#603b9e
#64459b
#674f98
#6b5895
#6f6191
#73698e
#777189
#7b7885

Hue

Various hues of this color.

#a32e1f
#a31f47
#a31f7e
#911fa3
#5a1fa3
#231fa3
#1f52a3
#1f89a3
#1fa386

Analogous

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

#5a1fa3
#251fa3
#401fa3

Monochromatic

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

#5a1fa3
#7127cd
#892ff8
#140723
#2b0f4e
#431778

Complementary

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

#5a1fa3
#68a31f

Split Complement

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

#5a1fa3
#a31f4e
#1fa325

Triad

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

#5a1fa3
#a35a1f
#1fa35a

Tetrad

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

#5a1fa3
#a31f26
#68a31f
#1fa39c

Contrast Checker

Contrast test results for the color #5a1fa3 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 #5a1fa3 appears to people with color vision deficiency (CVD).

Normal Vision
#5a1fa3
Protanopia
#2929a3
Red-blind (~1% of males)
Deuteranopia
#3333a1
Green-blind (~1% of males)
Tritanopia
#493030
Blue-blind (very rare)
Achromatopsia
#353535
Total color blindness

Questions about #5a1fa3

What is #5a1fa3 in RGB, HSL and CMYK?
In RGB, #5a1fa3 is rgb(90, 31, 163), in HSL hsl(267, 68%, 38%) and in CMYK 45%, 81%, 0%, 36%. Browse more shades of purple with names and hex codes.
What design applications work best for #5a1fa3?
This deep violet serves as an excellent anchor for dark-themed UI components or as a bold accent against neutral backgrounds. Its intensity allows it to stand out against white text, ensuring readability while maintaining a sophisticated, modern aesthetic in digital layouts.
Is #5a1fa3 readable on white or black?
#5a1fa3 has a 9.72:1 contrast ratio on white and 2.15: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.