#7F5178 color
The hex color #7F5178 is a grayish magenta.
In the RGB color model it is made of 49.8% red, 31.8% green and 47.1% blue (127, 81, 120).
Its hue angle is 309°, with 22% saturation and 41% lightness. For print, the CMYK equivalent is 0% cyan, 36% magenta, 6% yellow and 50% black.
The closest named color is Plum Highness (#885577), a difference of 3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 6.27:1).
#7F5178 color codes
| HEX | #7F5178 | |
|---|---|---|
| RGB | rgb(127, 81, 120) | |
| RGB percent | rgb(49.8%, 31.8%, 47.1%) | |
| HSL | hsl(309, 22%, 41%) | |
| HSV / HSB | hsv(309, 36%, 50%) | |
| CMYK | cmyk(0%, 36%, 6%, 50%) | |
| CIE LAB | lab(40.82, 25.79, -14.26) | |
| CIE LCH | lch(40.82, 29.47, 331.06) | |
| CIE XYZ | xyz(15.085, 11.754, 19.24) | |
| Decimal | 8343928 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #7F5178, 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 #7F5178 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.35:1 | Fail | Fail | Pass |
| Sample text | 6.27:1 | Pass | Fail | Pass |
| #7F5178 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.27:1 | Pass | Fail | Pass |
| Sample text | 3.35:1 | Fail | Fail | Pass |
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 #7F5178 looks to people with the most common types of color vision deficiency.
#505c79Protanopia
no red cones#5c6377Deuteranopia
no green cones#83545fTritanopia
no blue cones#606060Achromatopsia
no color vision
CSS examples
.background { background-color: #7f5178; }
.text { color: #7f5178; }
.border { border: 2px solid #7f5178; }
.transparent { background-color: rgb(127 81 120 / 50%); }
.gradient { background: linear-gradient(to right, #7f5178, #7f5161); }
Similar colors
#885577Plum Highness#7f4774Magic Magenta#82476fGrape Kiss#78587dDr Who#784674Purple Passion#905284Grape Candy#805b87Muted Purple#784467Magician’s Cloak
Closest common color name: Plum.
Questions
- What color is #7F5178?
- #7F5178 is a grayish magenta, closest to the named color Plum Highness. It belongs to the purple family of colors.
- What is the RGB value of #7F5178?
- The RGB value is 127, 81, 120: 127 red, 81 green and 120 blue on a 0 to 255 scale.
- What is the complementary color of #7F5178?
- The complementary color is #517F58, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #7F5178?
- White text. Black text has a contrast ratio of 3.35:1 and white text 6.27:1. WCAG asks for at least 4.5:1 for normal text.