#52218A color
The hex color #52218A is a dark, moderate violet.
In the RGB color model it is made of 32.2% red, 12.9% green and 54.1% blue (82, 33, 138).
Its hue angle is 268°, with 61% saturation and 34% lightness. For print, the CMYK equivalent is 41% cyan, 76% magenta, 0% yellow and 46% black.
The closest named color is Occult (#4B1E87), a difference of 1.4 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 10.81:1).
#52218A color codes
| HEX | #52218A | |
|---|---|---|
| RGB | rgb(82, 33, 138) | |
| RGB percent | rgb(32.2%, 12.9%, 54.1%) | |
| HSL | hsl(268, 61%, 34%) | |
| HSV / HSB | hsv(268, 76%, 54%) | |
| CMYK | cmyk(41%, 76%, 0%, 46%) | |
| CIE LAB | lab(25.91, 43.9, -49.38) | |
| CIE LCH | lch(25.91, 66.07, 311.64) | |
| CIE XYZ | xyz(8.61, 4.716, 24.497) | |
| Decimal | 5382538 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #52218A, 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 #52218A | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.94:1 | Fail | Fail | Fail |
| Sample text | 10.81:1 | Pass | Pass | Pass |
| #52218A as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.81:1 | Pass | Pass | Pass |
| Sample text | 1.94: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 #52218A looks to people with the most common types of color vision deficiency.
#003d8dProtanopia
no red cones#003c88Deuteranopia
no green cones#453c54Tritanopia
no blue cones#3d3d3dAchromatopsia
no color vision
CSS examples
.background { background-color: #52218a; }
.text { color: #52218a; }
.border { border: 2px solid #52218a; }
.transparent { background-color: rgb(82 33 138 / 50%); }
.gradient { background: linear-gradient(to right, #52218a, #86218a); }
Similar colors
#4b1e87Occult#5b1e8bIntergalactic Settlement#442288Galactic Civilization#572e89Night Fever#5c2e88Purple Patch#63209bWild Violet#662288Sapphire Siren#632f92Lucid Dreams
Closest common color name: Indigo.
Questions
- What color is #52218A?
- #52218A 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 #52218A?
- The RGB value is 82, 33, 138: 82 red, 33 green and 138 blue on a 0 to 255 scale.
- What is the complementary color of #52218A?
- The complementary color is #598A21, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #52218A?
- White text. Black text has a contrast ratio of 1.94:1 and white text 10.81:1. WCAG asks for at least 4.5:1 for normal text.