#5B21A3 color
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 | |
|---|---|---|
| RGB | rgb(91, 33, 163) | |
| RGB percent | rgb(35.7%, 12.9%, 63.9%) | |
| HSL | hsl(267, 66%, 38%) | |
| HSV / HSB | hsv(267, 80%, 64%) | |
| CMYK | cmyk(44%, 80%, 0%, 36%) | |
| CIE LAB | lab(29.3, 51.8, -59.14) | |
| CIE LCH | lch(29.3, 78.62, 311.21) | |
| CIE XYZ | xyz(11.467, 5.956, 35.189) | |
| Decimal | 5972387 | |
| Short hex | None (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 #5B21A3 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.19:1 | Fail | Fail | Fail |
| Sample text | 9.58:1 | Pass | Pass | Pass |
| #5B21A3 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 9.58:1 | Pass | Pass | Pass |
| Sample text | 2.19:1 | Fail | Fail | Fail |
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.
#0045a7Protanopia
no red cones#0043a1Deuteranopia
no green cones#484562Tritanopia
no blue cones#454545Achromatopsia
no color vision
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); }
Similar colors
#63209bWild Violet#5930a9Royalty#5b1e8bIntergalactic Settlement#6f2da8Grape#632f92Lucid Dreams#472e97Galactic Purple#663399Rebecca Purple#4b1e87Occult
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.