#5A12C5

A medium, vivid purple closely aligning with Blueviolet.

About #5A12C5

The hex code #5A12C5 represents a beautifully specific shade of purple. Designers often compare it to the standard color Blueviolet. In the RGB color space, it consists of 90 red, 18 green, and 197 blue.

When sending designs containing this color to a printer, the CMYK values come into play. Its ink density profile breaks down to 54% cyan, 91% magenta, 0% yellow, and 23% black. The HSL representation is 264.1° hue, 83.3% saturation, and 42.2% lightness.

From a UX and accessibility standpoint, contrast is paramount. Because it is a medium color, it is generally recommended to use #FFFFFF text. Be sure to check our contrast matrix below to see exactly how it performs against common backgrounds.

Color Space Conversions

HEX#5A12C5
RGB90, 18, 197
HSL264.1°, 83.3%, 42.2%
CMYK54%, 91%, 0%, 23%
HSV264.1°, 90.9%, 77.3%
LAB31.0, 64.8, -76.7
XYZ14.5, 6.6, 53.3
Decimal5903045

Color Harmonies

Complementary

Analogous

Triadic

Tints, Shades & Tones

Tints (Adding White)

Shades (Adding Black)

WCAG Contrast Accessibility

9.02:1
Text on #FFFFFF
AAA
2.33:1
Text on #000000
FAIL
8.62:1
Text on #F8FAFC
AAA
1.98:1
Text on #0F172A
FAIL

CSS Implementation

.bg-color { background-color: #5A12C5; }
.text-color { color: #5A12C5; }
.border-color { border: 2px solid #5A12C5; }

Similar Colors

Blueviolet
#8A2BE2