#5123AB color
The hex color #5123AB is a moderate violet.
In the RGB color model it is made of 31.8% red, 13.7% green and 67.1% blue (81, 35, 171).
Its hue angle is 260°, with 66% saturation and 40% lightness. For print, the CMYK equivalent is 53% cyan, 80% magenta, 0% yellow and 33% black.
The closest named color is Royalty (#5930A9), a difference of 2.9 ΔE, a small difference.
White text is the more readable choice on this background (contrast 9.64:1).
#5123AB color codes
| HEX | #5123AB | |
|---|---|---|
| RGB | rgb(81, 35, 171) | |
| RGB percent | rgb(31.8%, 13.7%, 67.1%) | |
| HSL | hsl(260, 66%, 40%) | |
| HSV / HSB | hsv(260, 80%, 67%) | |
| CMYK | cmyk(53%, 80%, 0%, 33%) | |
| CIE LAB | lab(29.14, 51.62, -64.29) | |
| CIE LCH | lch(29.14, 82.44, 308.76) | |
| CIE XYZ | xyz(11.343, 5.891, 39.06) | |
| Decimal | 5317547 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5123AB, 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 #5123AB | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.18:1 | Fail | Fail | Fail |
| Sample text | 9.64:1 | Pass | Pass | Pass |
| #5123AB as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 9.64:1 | Pass | Pass | Pass |
| Sample text | 2.18: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 #5123AB looks to people with the most common types of color vision deficiency.
#0047afProtanopia
no red cones#0041a9Deuteranopia
no green cones#304a67Tritanopia
no blue cones#454545Achromatopsia
no color vision
CSS examples
.background { background-color: #5123ab; }
.text { color: #5123ab; }
.border { border: 2px solid #5123ab; }
.transparent { background-color: rgb(81 35 171 / 50%); }
.gradient { background: linear-gradient(to right, #5123ab, #9523ab); }
Similar colors
#5930a9Royalty#472e97Galactic Purple#63209bWild Violet#3311bbGalactic Highway#6633bbPurple Emperor#312297Gentian Blue#2425b9Sapphire Splendour#442288Galactic Civilization
Closest common color name: Grape.
Questions
- What color is #5123AB?
- #5123AB is a moderate violet, closest to the named color Royalty. It belongs to the purple family of colors.
- What is the RGB value of #5123AB?
- The RGB value is 81, 35, 171: 81 red, 35 green and 171 blue on a 0 to 255 scale.
- What is the complementary color of #5123AB?
- The complementary color is #7DAB23, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5123AB?
- White text. Black text has a contrast ratio of 2.18:1 and white text 9.64:1. WCAG asks for at least 4.5:1 for normal text.