#4A2A7F color
The hex color #4A2A7F is a dark, moderate violet.
In the RGB color model it is made of 29% red, 16.5% green and 49.8% blue (74, 42, 127).
Its hue angle is 263°, with 50% saturation and 33% lightness. For print, the CMYK equivalent is 42% cyan, 67% magenta, 0% yellow and 50% black.
The closest named color is Mystic Nights (#4B2C74), a difference of 2.5 ΔE, a small difference.
White text is the more readable choice on this background (contrast 10.89:1).
#4A2A7F color codes
| HEX | #4A2A7F | |
|---|---|---|
| RGB | rgb(74, 42, 127) | |
| RGB percent | rgb(29%, 16.5%, 49.8%) | |
| HSL | hsl(263, 50%, 33%) | |
| HSV / HSB | hsv(263, 67%, 50%) | |
| CMYK | cmyk(42%, 67%, 0%, 50%) | |
| CIE LAB | lab(25.7, 34.56, -42.88) | |
| CIE LCH | lch(25.7, 55.08, 308.87) | |
| CIE XYZ | xyz(7.482, 4.644, 20.577) | |
| Decimal | 4860543 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #4A2A7F, 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 #4A2A7F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.93:1 | Fail | Fail | Fail |
| Sample text | 10.89:1 | Pass | Pass | Pass |
| #4A2A7F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.89:1 | Pass | Pass | Pass |
| Sample text | 1.93: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 #4A2A7F looks to people with the most common types of color vision deficiency.
#003d82Protanopia
no red cones#003c7dDeuteranopia
no green cones#3d3e50Tritanopia
no blue cones#3d3d3dAchromatopsia
no color vision
CSS examples
.background { background-color: #4a2a7f; }
.text { color: #4a2a7f; }
.border { border: 2px solid #4a2a7f; }
.transparent { background-color: rgb(74 42 127 / 50%); }
.gradient { background: linear-gradient(to right, #4a2a7f, #752a7f); }
Similar colors
#4b2c74Mystic Nights#572e89Night Fever#442288Galactic Civilization#4b1e87Occult#443388Majestic Eggplant#5c2e88Purple Patch#48357bGalactic Compass#3a1f76Explorer of the Galaxies
Closest common color name: Dark Slate Blue.
Questions
- What color is #4A2A7F?
- #4A2A7F 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 #4A2A7F?
- The RGB value is 74, 42, 127: 74 red, 42 green and 127 blue on a 0 to 255 scale.
- What is the complementary color of #4A2A7F?
- The complementary color is #5F7F2A, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #4A2A7F?
- White text. Black text has a contrast ratio of 1.93:1 and white text 10.89:1. WCAG asks for at least 4.5:1 for normal text.