#512A5D color

#512A5D rgb(81, 42, 93)
Shades of purple

The hex color #512A5D is a dark, desaturated magenta.

In the RGB color model it is made of 31.8% red, 16.5% green and 36.5% blue (81, 42, 93).

Its hue angle is 286°, with 38% saturation and 26% lightness. For print, the CMYK equivalent is 13% cyan, 55% magenta, 0% yellow and 64% black.

The closest named color is Wonka Purple (#4A2559), a difference of 1.8 ΔE, which is barely visible.

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

#512A5D color codes

HEX#512A5D
RGBrgb(81, 42, 93)
RGB percentrgb(31.8%, 16.5%, 36.5%)
HSLhsl(286, 38%, 26%)
HSV / HSBhsv(286, 55%, 36%)
CMYKcmyk(13%, 55%, 0%, 64%)
CIE LABlab(24.31, 27.5, -23.19)
CIE LCHlch(24.31, 35.97, 319.86)
CIE XYZxyz(6.197, 4.196, 10.837)
Decimal5319261
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #512A5D, 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 #512A5DRatioAAAAAAA large
Sample text1.84:1FailFailFail
Sample text11.42:1PassPassPass
#512A5D as text onRatioAAAAAAA large
Sample text11.42:1PassPassPass
Sample text1.84: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 #512A5D looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #512a5d; }
.text { color: #512a5d; }
.border { border: 2px solid #512a5d; }
.transparent { background-color: rgb(81 42 93 / 50%); }
.gradient { background: linear-gradient(to right, #512a5d, #5d2a50); }
Background
Text color
Border

Similar colors

Closest common color name: Byzantium.

Questions

What color is #512A5D?
#512A5D is a dark, desaturated magenta, closest to the named color Wonka Purple. It belongs to the purple family of colors.
What is the RGB value of #512A5D?
The RGB value is 81, 42, 93: 81 red, 42 green and 93 blue on a 0 to 255 scale.
What is the complementary color of #512A5D?
The complementary color is #365D2A, found by rotating the hue 180° on the color wheel.
Is black or white text better on #512A5D?
White text. Black text has a contrast ratio of 1.84:1 and white text 11.42:1. WCAG asks for at least 4.5:1 for normal text.