#8A1797 color

#8A1797 rgb(138, 23, 151)
Shades of purple

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
RGBrgb(138, 23, 151)
RGB percentrgb(54.1%, 9%, 59.2%)
HSLhsl(294, 74%, 34%)
HSV / HSBhsv(294, 85%, 59%)
CMYKcmyk(9%, 85%, 0%, 41%)
CIE LABlab(34.5, 60.53, -43.07)
CIE LCHlch(34.5, 74.29, 324.56)
CIE XYZxyz(16.373, 8.251, 30.002)
Decimal9050007
Short hexNone (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 #8A1797RatioAAAAAAA large
Sample text2.65:1FailFailFail
Sample text7.92:1PassPassPass
#8A1797 as text onRatioAAAAAAA large
Sample text7.92:1PassPassPass
Sample text2.65:1FailFailFail

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.

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); }
Background
Text color
Border

Similar colors

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.