#5B21A3 color

#5B21A3 rgb(91, 33, 163)
Shades of purple

The hex color #5B21A3 is a moderate violet.

In the RGB color model it is made of 35.7% red, 12.9% green and 63.9% blue (91, 33, 163).

Its hue angle is 267°, with 66% saturation and 38% lightness. For print, the CMYK equivalent is 44% cyan, 80% magenta, 0% yellow and 36% black.

The closest named color is Wild Violet (#63209B), a difference of 2.1 ΔE, a small difference.

White text is the more readable choice on this background (contrast 9.58:1).

#5B21A3 color codes

HEX#5B21A3
RGBrgb(91, 33, 163)
RGB percentrgb(35.7%, 12.9%, 63.9%)
HSLhsl(267, 66%, 38%)
HSV / HSBhsv(267, 80%, 64%)
CMYKcmyk(44%, 80%, 0%, 36%)
CIE LABlab(29.3, 51.8, -59.14)
CIE LCHlch(29.3, 78.62, 311.21)
CIE XYZxyz(11.467, 5.956, 35.189)
Decimal5972387
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #5B21A3, based on their position on the color wheel.

Complementary

The color opposite on the color wheel (180°). Strongest contrast.

Analogous

Neighbors 30° either side. Calm, natural combinations.

Split complementary

The two colors next to the complement (150° and 210°).

Triadic

Three colors evenly spaced, 120° apart.

Tetradic (square)

Four colors 90° apart.

Shades, tints and tones

Shades (darker, mixed with black)

Tints (lighter, mixed with white)

Tones (mixed with gray)

Contrast and accessibility

Text on #5B21A3RatioAAAAAAA large
Sample text2.19:1FailFailFail
Sample text9.58:1PassPassPass
#5B21A3 as text onRatioAAAAAAA large
Sample text9.58:1PassPassPass
Sample text2.19:1FailFailFail

WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.

Color blindness simulation

How #5B21A3 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #5b21a3; }
.text { color: #5b21a3; }
.border { border: 2px solid #5b21a3; }
.transparent { background-color: rgb(91 33 163 / 50%); }
.gradient { background: linear-gradient(to right, #5b21a3, #9c21a3); }
Background
Text color
Border

Similar colors

Questions

What color is #5B21A3?
#5B21A3 is a moderate violet, closest to the named color Wild Violet. It belongs to the purple family of colors.
What is the RGB value of #5B21A3?
The RGB value is 91, 33, 163: 91 red, 33 green and 163 blue on a 0 to 255 scale.
What is the complementary color of #5B21A3?
The complementary color is #69A321, found by rotating the hue 180° on the color wheel.
Is black or white text better on #5B21A3?
White text. Black text has a contrast ratio of 2.19:1 and white text 9.58:1. WCAG asks for at least 4.5:1 for normal text.