#510857 color
The hex color #510857 is a very dark, vivid magenta.
In the RGB color model it is made of 31.8% red, 3.1% green and 34.1% blue (81, 8, 87).
Its hue angle is 295°, with 83% saturation and 19% lightness. For print, the CMYK equivalent is 7% cyan, 91% magenta, 0% yellow and 66% black.
The closest named color is Cloak and Dagger (#550055), a difference of 1.4 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 13.8:1).
#510857 color codes
| HEX | #510857 | |
|---|---|---|
| RGB | rgb(81, 8, 87) | |
| RGB percent | rgb(31.8%, 3.1%, 34.1%) | |
| HSL | hsl(295, 83%, 19%) | |
| HSV / HSB | hsv(295, 91%, 34%) | |
| CMYK | cmyk(7%, 91%, 0%, 66%) | |
| CIE LAB | lab(18.42, 41.47, -28.57) | |
| CIE LCH | lch(18.42, 50.36, 325.44) | |
| CIE XYZ | xyz(5.2, 2.611, 9.245) | |
| Decimal | 5310551 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #510857, 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 #510857 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.52:1 | Fail | Fail | Fail |
| Sample text | 13.8:1 | Pass | Pass | Pass |
| #510857 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.8:1 | Pass | Pass | Pass |
| Sample text | 1.52: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 #510857 looks to people with the most common types of color vision deficiency.
#002859Protanopia
no red cones#1a3055Deuteranopia
no green cones#531931Tritanopia
no blue cones#2d2d2dAchromatopsia
no color vision
CSS examples
.background { background-color: #510857; }
.text { color: #510857; }
.border { border: 2px solid #510857; }
.transparent { background-color: rgb(81 8 87 / 50%); }
.gradient { background: linear-gradient(to right, #510857, #570836); }
Similar colors
#550055Cloak and Dagger#551155Cosmic Explorer#480656Clairvoyant#581a57Purple Velour#3b0346Romanic Scene#540d6eVelvet Vortex#441144Velvet Cosmos#431c53Plunged Into Darkness
Closest common color name: Byzantium.
Questions
- What color is #510857?
- #510857 is a very dark, vivid magenta, closest to the named color Cloak and Dagger. It belongs to the purple family of colors.
- What is the RGB value of #510857?
- The RGB value is 81, 8, 87: 81 red, 8 green and 87 blue on a 0 to 255 scale.
- What is the complementary color of #510857?
- The complementary color is #0E5708, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #510857?
- White text. Black text has a contrast ratio of 1.52:1 and white text 13.8:1. WCAG asks for at least 4.5:1 for normal text.