#5A257F color
The hex color #5A257F is a dark, moderate violet.
In the RGB color model it is made of 35.3% red, 14.5% green and 49.8% blue (90, 37, 127).
Its hue angle is 275°, with 55% saturation and 32% lightness. For print, the CMYK equivalent is 29% cyan, 71% magenta, 0% yellow and 50% black.
The closest named color is Purple Patch (#5C2E88), a difference of 2.4 ΔE, a small difference.
White text is the more readable choice on this background (contrast 10.47:1).
#5A257F color codes
| HEX | #5A257F | |
|---|---|---|
| RGB | rgb(90, 37, 127) | |
| RGB percent | rgb(35.3%, 14.5%, 49.8%) | |
| HSL | hsl(275, 55%, 32%) | |
| HSV / HSB | hsv(275, 71%, 50%) | |
| CMYK | cmyk(29%, 71%, 0%, 50%) | |
| CIE LAB | lab(26.82, 40.84, -40.97) | |
| CIE LCH | lch(26.82, 57.85, 314.92) | |
| CIE XYZ | xyz(8.708, 5.029, 20.587) | |
| Decimal | 5907839 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5A257F, 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 #5A257F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.01:1 | Fail | Fail | Fail |
| Sample text | 10.47:1 | Pass | Pass | Pass |
| #5A257F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.47:1 | Pass | Pass | Pass |
| Sample text | 2.01: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 #5A257F looks to people with the most common types of color vision deficiency.
#003d82Protanopia
no red cones#10407dDeuteranopia
no green cones#54394fTritanopia
no blue cones#3f3f3fAchromatopsia
no color vision
CSS examples
.background { background-color: #5a257f; }
.text { color: #5a257f; }
.border { border: 2px solid #5a257f; }
.transparent { background-color: rgb(90 37 127 / 50%); }
.gradient { background: linear-gradient(to right, #5a257f, #7f2577); }
Similar colors
#5c2e88Purple Patch#662288Sapphire Siren#5b1e8bIntergalactic Settlement#572e89Night Fever#522a6fPurple Seduction#661188Extraviolet#632f92Lucid Dreams#4b2c74Mystic Nights
Closest common color name: Rebecca Purple.
Questions
- What color is #5A257F?
- #5A257F is a dark, moderate violet, closest to the named color Purple Patch. It belongs to the purple family of colors.
- What is the RGB value of #5A257F?
- The RGB value is 90, 37, 127: 90 red, 37 green and 127 blue on a 0 to 255 scale.
- What is the complementary color of #5A257F?
- The complementary color is #4A7F25, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5A257F?
- White text. Black text has a contrast ratio of 2.01:1 and white text 10.47:1. WCAG asks for at least 4.5:1 for normal text.