#502E7A color
The hex color #502E7A is a dark, desaturated violet.
In the RGB color model it is made of 31.4% red, 18% green and 47.8% blue (80, 46, 122).
Its hue angle is 267°, with 45% saturation and 33% lightness. For print, the CMYK equivalent is 34% cyan, 62% magenta, 0% yellow and 52% black.
The closest named color is Mystic Nights (#4B2C74), a difference of 1.3 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 10.43:1).
#502E7A color codes
| HEX | #502E7A | |
|---|---|---|
| RGB | rgb(80, 46, 122) | |
| RGB percent | rgb(31.4%, 18%, 47.8%) | |
| HSL | hsl(267, 45%, 33%) | |
| HSV / HSB | hsv(267, 62%, 48%) | |
| CMYK | cmyk(34%, 62%, 0%, 52%) | |
| CIE LAB | lab(26.92, 32.26, -37.72) | |
| CIE LCH | lch(26.92, 49.63, 310.54) | |
| CIE XYZ | xyz(7.797, 5.065, 18.975) | |
| Decimal | 5254778 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #502E7A, 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 #502E7A | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.01:1 | Fail | Fail | Fail |
| Sample text | 10.43:1 | Pass | Pass | Pass |
| #502E7A as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.43:1 | Pass | Pass | Pass |
| Sample text | 2.01: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 #502E7A looks to people with the most common types of color vision deficiency.
#043f7cProtanopia
no red cones#173f78Deuteranopia
no green cones#473e4fTritanopia
no blue cones#404040Achromatopsia
no color vision
CSS examples
.background { background-color: #502e7a; }
.text { color: #502e7a; }
.border { border: 2px solid #502e7a; }
.transparent { background-color: rgb(80 46 122 / 50%); }
.gradient { background: linear-gradient(to right, #502e7a, #762e7a); }
Similar colors
#4b2c74Mystic Nights#583580Kingfisher Daisy#522a6fPurple Seduction#572e89Night Fever#5c2e88Purple Patch#48357bGalactic Compass#432e6fHer Highness#442266Fading Horizon
Closest common color name: Dark Slate Blue.
Questions
- What color is #502E7A?
- #502E7A is a dark, desaturated violet, closest to the named color Mystic Nights. It belongs to the purple family of colors.
- What is the RGB value of #502E7A?
- The RGB value is 80, 46, 122: 80 red, 46 green and 122 blue on a 0 to 255 scale.
- What is the complementary color of #502E7A?
- The complementary color is #587A2E, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #502E7A?
- White text. Black text has a contrast ratio of 2.01:1 and white text 10.43:1. WCAG asks for at least 4.5:1 for normal text.