#510748 color
The hex color #510748 is a very dark, vivid magenta.
In the RGB color model it is made of 31.8% red, 2.7% green and 28.2% blue (81, 7, 72).
Its hue angle is 307°, with 84% saturation and 17% lightness. For print, the CMYK equivalent is 0% cyan, 91% magenta, 11% yellow and 68% black.
The closest named color is Cosmic Explorer (#551155), a difference of 2.9 ΔE, a small difference.
White text is the more readable choice on this background (contrast 14.25:1).
#510748 color codes
| HEX | #510748 | |
|---|---|---|
| RGB | rgb(81, 7, 72) | |
| RGB percent | rgb(31.8%, 2.7%, 28.2%) | |
| HSL | hsl(307, 84%, 17%) | |
| HSV / HSB | hsv(307, 91%, 32%) | |
| CMYK | cmyk(0%, 91%, 11%, 68%) | |
| CIE LAB | lab(17.32, 39.11, -20.08) | |
| CIE LCH | lch(17.32, 43.97, 332.82) | |
| CIE XYZ | xyz(4.639, 2.37, 6.343) | |
| Decimal | 5310280 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #510748, 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 #510748 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.47:1 | Fail | Fail | Fail |
| Sample text | 14.25:1 | Pass | Pass | Pass |
| #510748 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.25:1 | Pass | Pass | Pass |
| Sample text | 1.47: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 #510748 looks to people with the most common types of color vision deficiency.
#05244aProtanopia
no red cones#242e46Deuteranopia
no green cones#551028Tritanopia
no blue cones#2b2b2bAchromatopsia
no color vision
CSS examples
.background { background-color: #510748; }
.text { color: #510748; }
.border { border: 2px solid #510748; }
.transparent { background-color: rgb(81 7 72 / 50%); }
.gradient { background: linear-gradient(to right, #510748, #510723); }
Similar colors
#551155Cosmic Explorer#441144Velvet Cosmos#550055Cloak and Dagger#581a57Purple Velour#480656Clairvoyant#3b0346Romanic Scene#431c53Plunged Into Darkness#3f012cDark Sanctuary
Closest common color name: Tyrian Purple.
Questions
- What color is #510748?
- #510748 is a very dark, vivid magenta, closest to the named color Cosmic Explorer. It belongs to the purple family of colors.
- What is the RGB value of #510748?
- The RGB value is 81, 7, 72: 81 red, 7 green and 72 blue on a 0 to 255 scale.
- What is the complementary color of #510748?
- The complementary color is #075110, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #510748?
- White text. Black text has a contrast ratio of 1.47:1 and white text 14.25:1. WCAG asks for at least 4.5:1 for normal text.