#5123AB color

#5123AB rgb(81, 35, 171)
Shades of purple

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
RGBrgb(81, 35, 171)
RGB percentrgb(31.8%, 13.7%, 67.1%)
HSLhsl(260, 66%, 40%)
HSV / HSBhsv(260, 80%, 67%)
CMYKcmyk(53%, 80%, 0%, 33%)
CIE LABlab(29.14, 51.62, -64.29)
CIE LCHlch(29.14, 82.44, 308.76)
CIE XYZxyz(11.343, 5.891, 39.06)
Decimal5317547
Short hexNone (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 #5123ABRatioAAAAAAA large
Sample text2.18:1FailFailFail
Sample text9.64:1PassPassPass
#5123AB as text onRatioAAAAAAA large
Sample text9.64:1PassPassPass
Sample text2.18: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 #5123AB looks to people with the most common types of color vision deficiency.

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); }
Background
Text color
Border

Similar colors

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.