#8A1797 color
The hex color #8A1797 is a dark, moderate magenta.
In the RGB color model it is made of 54.1% red, 9% green and 59.2% blue (138, 23, 151).
Its hue angle is 294°, with 74% saturation and 34% lightness. For print, the CMYK equivalent is 9% cyan, 85% magenta, 0% yellow and 41% black.
The closest named color is Dark Magenta (#8B008B), a difference of 2.6 ΔE, a small difference.
White text is the more readable choice on this background (contrast 7.92:1).
#8A1797 color codes
| HEX | #8A1797 | |
|---|---|---|
| RGB | rgb(138, 23, 151) | |
| RGB percent | rgb(54.1%, 9%, 59.2%) | |
| HSL | hsl(294, 74%, 34%) | |
| HSV / HSB | hsv(294, 85%, 59%) | |
| CMYK | cmyk(9%, 85%, 0%, 41%) | |
| CIE LAB | lab(34.5, 60.53, -43.07) | |
| CIE LCH | lch(34.5, 74.29, 324.56) | |
| CIE XYZ | xyz(16.373, 8.251, 30.002) | |
| Decimal | 9050007 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #8A1797, 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 #8A1797 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.65:1 | Fail | Fail | Fail |
| Sample text | 7.92:1 | Pass | Pass | Pass |
| #8A1797 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 7.92:1 | Pass | Pass | Pass |
| Sample text | 2.65: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 #8A1797 looks to people with the most common types of color vision deficiency.
#00499aProtanopia
no red cones#315594Deuteranopia
no green cones#8c345aTritanopia
no blue cones#515151Achromatopsia
no color vision
CSS examples
.background { background-color: #8a1797; }
.text { color: #8a1797; }
.border { border: 2px solid #8a1797; }
.transparent { background-color: rgb(138 23 151 / 50%); }
.gradient { background: linear-gradient(to right, #8a1797, #971764); }
Similar colors
#8b008bDark Magenta#772299Orb of Discord#802280Hello Darkness My Old Friend#800080Purple#770088Ultraberry#9a2ca0Purple Ink#8833aaPleasant Purple#952e8fWarm Purple
Questions
- What color is #8A1797?
- #8A1797 is a dark, moderate magenta, closest to the named color Dark Magenta. It belongs to the purple family of colors.
- What is the RGB value of #8A1797?
- The RGB value is 138, 23, 151: 138 red, 23 green and 151 blue on a 0 to 255 scale.
- What is the complementary color of #8A1797?
- The complementary color is #249717, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #8A1797?
- White text. Black text has a contrast ratio of 2.65:1 and white text 7.92:1. WCAG asks for at least 4.5:1 for normal text.