#511A5A color

#511A5A rgb(81, 26, 90)
Shades of purple

The hex color #511A5A is a dark, moderate magenta.

In the RGB color model it is made of 31.8% red, 10.2% green and 35.3% blue (81, 26, 90).

Its hue angle is 292°, with 55% saturation and 23% lightness. For print, the CMYK equivalent is 10% cyan, 71% magenta, 0% yellow and 65% black.

The closest named color is Cosmic Explorer (#551155), a difference of 2.3 ΔE, a small difference.

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

#511A5A color codes

HEX#511A5A
RGBrgb(81, 26, 90)
RGB percentrgb(31.8%, 10.2%, 35.3%)
HSLhsl(292, 55%, 23%)
HSV / HSBhsv(292, 71%, 35%)
CMYKcmyk(10%, 71%, 0%, 65%)
CIE LABlab(20.93, 35.47, -26.56)
CIE LCHlch(20.93, 44.31, 323.18)
CIE XYZxyz(5.608, 3.227, 9.998)
Decimal5315162
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #511A5A, 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 #511A5ARatioAAAAAAA large
Sample text1.65:1FailFailFail
Sample text12.76:1PassPassPass
#511A5A as text onRatioAAAAAAA large
Sample text12.76:1PassPassPass
Sample text1.65: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 #511A5A looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #511a5a; }
.text { color: #511a5a; }
.border { border: 2px solid #511a5a; }
.transparent { background-color: rgb(81 26 90 / 50%); }
.gradient { background: linear-gradient(to right, #511a5a, #5a1a43); }
Background
Text color
Border

Similar colors

Closest common color name: Byzantium.

Questions

What color is #511A5A?
#511A5A is a dark, moderate magenta, closest to the named color Cosmic Explorer. It belongs to the purple family of colors.
What is the RGB value of #511A5A?
The RGB value is 81, 26, 90: 81 red, 26 green and 90 blue on a 0 to 255 scale.
What is the complementary color of #511A5A?
The complementary color is #235A1A, found by rotating the hue 180° on the color wheel.
Is black or white text better on #511A5A?
White text. Black text has a contrast ratio of 1.65:1 and white text 12.76:1. WCAG asks for at least 4.5:1 for normal text.