#4C2174 color
The hex color #4C2174 is a dark, moderate violet.
In the RGB color model it is made of 29.8% red, 12.9% green and 45.5% blue (76, 33, 116).
Its hue angle is 271°, with 56% saturation and 29% lightness. For print, the CMYK equivalent is 34% cyan, 72% magenta, 0% yellow and 55% black.
The closest named color is Mystic Nights (#4B2C74), a difference of 2.9 ΔE, a small difference.
White text is the more readable choice on this background (contrast 11.82:1).
#4C2174 color codes
| HEX | #4C2174 | |
|---|---|---|
| RGB | rgb(76, 33, 116) | |
| RGB percent | rgb(29.8%, 12.9%, 45.5%) | |
| HSL | hsl(271, 56%, 29%) | |
| HSV / HSB | hsv(271, 72%, 45%) | |
| CMYK | cmyk(34%, 72%, 0%, 55%) | |
| CIE LAB | lab(23.29, 36.95, -39.78) | |
| CIE LCH | lch(23.29, 54.3, 312.89) | |
| CIE XYZ | xyz(6.676, 3.885, 16.918) | |
| Decimal | 4989300 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #4C2174, 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 #4C2174 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.78:1 | Fail | Fail | Fail |
| Sample text | 11.82:1 | Pass | Pass | Pass |
| #4C2174 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.82:1 | Pass | Pass | Pass |
| Sample text | 1.78: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 #4C2174 looks to people with the most common types of color vision deficiency.
#003776Protanopia
no red cones#003772Deuteranopia
no green cones#443448Tritanopia
no blue cones#373737Achromatopsia
no color vision
CSS examples
.background { background-color: #4c2174; }
.text { color: #4c2174; }
.border { border: 2px solid #4c2174; }
.transparent { background-color: rgb(76 33 116 / 50%); }
.gradient { background: linear-gradient(to right, #4c2174, #742172); }
Similar colors
#4b2c74Mystic Nights#442266Fading Horizon#522a6fPurple Seduction#4b1e87Occult#3a1f76Explorer of the Galaxies#540d6eVelvet Vortex#552367Elegant Purple Gown#5b1e8bIntergalactic Settlement
Closest common color name: Indigo.
Questions
- What color is #4C2174?
- #4C2174 is a dark, moderate violet, closest to the named color Mystic Nights. It belongs to the purple family of colors.
- What is the RGB value of #4C2174?
- The RGB value is 76, 33, 116: 76 red, 33 green and 116 blue on a 0 to 255 scale.
- What is the complementary color of #4C2174?
- The complementary color is #497421, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #4C2174?
- White text. Black text has a contrast ratio of 1.78:1 and white text 11.82:1. WCAG asks for at least 4.5:1 for normal text.