#9E2F8C color

#9E2F8C rgb(158, 47, 140)
Shades of purple

The hex color #9E2F8C is a moderate magenta.

In the RGB color model it is made of 62% red, 18.4% green and 54.9% blue (158, 47, 140).

Its hue angle is 310°, with 54% saturation and 40% lightness. For print, the CMYK equivalent is 0% cyan, 70% magenta, 11% yellow and 38% black.

The closest named color is Purple Excellency (#943589), a difference of 1.9 ΔE, which is barely visible.

White text is the more readable choice on this background (contrast 6.48:1).

#9E2F8C color codes

HEX#9E2F8C
RGBrgb(158, 47, 140)
RGB percentrgb(62%, 18.4%, 54.9%)
HSLhsl(310, 54%, 40%)
HSV / HSBhsv(310, 70%, 62%)
CMYKcmyk(0%, 70%, 11%, 38%)
CIE LABlab(39.91, 55.66, -27.56)
CIE LCHlch(39.91, 62.11, 333.66)
CIE XYZxyz(19.851, 11.197, 25.922)
Decimal10366860
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #9E2F8C, 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 #9E2F8CRatioAAAAAAA large
Sample text3.24:1FailFailPass
Sample text6.48:1PassFailPass
#9E2F8C as text onRatioAAAAAAA large
Sample text6.48:1PassFailPass
Sample text3.24:1FailFailPass

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 #9E2F8C looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #9e2f8c; }
.text { color: #9e2f8c; }
.border { border: 2px solid #9e2f8c; }
.transparent { background-color: rgb(158 47 140 / 50%); }
.gradient { background: linear-gradient(to right, #9e2f8c, #9e2f54); }
Background
Text color
Border

Similar colors

Questions

What color is #9E2F8C?
#9E2F8C is a moderate magenta, closest to the named color Purple Excellency. It belongs to the purple family of colors.
What is the RGB value of #9E2F8C?
The RGB value is 158, 47, 140: 158 red, 47 green and 140 blue on a 0 to 255 scale.
What is the complementary color of #9E2F8C?
The complementary color is #2F9E41, found by rotating the hue 180° on the color wheel.
Is black or white text better on #9E2F8C?
White text. Black text has a contrast ratio of 3.24:1 and white text 6.48:1. WCAG asks for at least 4.5:1 for normal text.