#4E178C color
The hex color #4E178C is a dark, moderate violet.
In the RGB color model it is made of 30.6% red, 9% green and 54.9% blue (78, 23, 140).
Its hue angle is 268°, with 72% saturation and 32% lightness. For print, the CMYK equivalent is 44% cyan, 84% magenta, 0% yellow and 45% black.
The closest named color is Occult (#4B1E87), a difference of 1.5 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 11.51:1).
#4E178C color codes
| HEX | #4E178C | |
|---|---|---|
| RGB | rgb(78, 23, 140) | |
| RGB percent | rgb(30.6%, 9%, 54.9%) | |
| HSL | hsl(268, 72%, 32%) | |
| HSV / HSB | hsv(268, 84%, 55%) | |
| CMYK | cmyk(44%, 84%, 0%, 45%) | |
| CIE LAB | lab(24.08, 47.99, -53.64) | |
| CIE LCH | lch(24.08, 71.97, 311.82) | |
| CIE XYZ | xyz(8.181, 4.126, 25.171) | |
| Decimal | 5117836 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #4E178C, 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 #4E178C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.83:1 | Fail | Fail | Fail |
| Sample text | 11.51:1 | Pass | Pass | Pass |
| #4E178C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.51:1 | Pass | Pass | Pass |
| Sample text | 1.83: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 #4E178C looks to people with the most common types of color vision deficiency.
#00398fProtanopia
no red cones#00388aDeuteranopia
no green cones#3e3953Tritanopia
no blue cones#393939Achromatopsia
no color vision
CSS examples
.background { background-color: #4e178c; }
.text { color: #4e178c; }
.border { border: 2px solid #4e178c; }
.transparent { background-color: rgb(78 23 140 / 50%); }
.gradient { background: linear-gradient(to right, #4e178c, #88178c); }
Similar colors
#4b1e87Occult#442288Galactic Civilization#5b1e8bIntergalactic Settlement#4b0183Indigo Static#4b0082Indigo#440099Space Battle Blue#63209bWild Violet#301885Indiglow
Questions
- What color is #4E178C?
- #4E178C is a dark, moderate violet, closest to the named color Occult. It belongs to the purple family of colors.
- What is the RGB value of #4E178C?
- The RGB value is 78, 23, 140: 78 red, 23 green and 140 blue on a 0 to 255 scale.
- What is the complementary color of #4E178C?
- The complementary color is #558C17, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #4E178C?
- White text. Black text has a contrast ratio of 1.83:1 and white text 11.51:1. WCAG asks for at least 4.5:1 for normal text.