#5731D8 color
The hex color #5731D8 is a moderate violet.
In the RGB color model it is made of 34.1% red, 19.2% green and 84.7% blue (87, 49, 216).
Its hue angle is 254°, with 68% saturation and 52% lightness. For print, the CMYK equivalent is 60% cyan, 77% magenta, 0% yellow and 15% black.
The closest named color is Blurple (#5539CC), a difference of 2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 7.4:1).
#5731D8 color codes
| HEX | #5731D8 | |
|---|---|---|
| RGB | rgb(87, 49, 216) | |
| RGB percent | rgb(34.1%, 19.2%, 84.7%) | |
| HSL | hsl(254, 68%, 52%) | |
| HSV / HSB | hsv(254, 77%, 85%) | |
| CMYK | cmyk(60%, 77%, 0%, 15%) | |
| CIE LAB | lab(36.33, 58.46, -78.88) | |
| CIE LCH | lch(36.33, 98.18, 306.55) | |
| CIE XYZ | xyz(17.42, 9.18, 65.806) | |
| Decimal | 5714392 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5731D8, 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 #5731D8 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.84:1 | Fail | Fail | Fail |
| Sample text | 7.4:1 | Pass | Pass | Pass |
| #5731D8 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 7.4:1 | Pass | Pass | Pass |
| Sample text | 2.84: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 #5731D8 looks to people with the most common types of color vision deficiency.
#005addProtanopia
no red cones#0050d5Deuteranopia
no green cones#006284Tritanopia
no blue cones#555555Achromatopsia
no color vision
CSS examples
.background { background-color: #5731d8; }
.text { color: #5731d8; }
.border { border: 2px solid #5731d8; }
.transparent { background-color: rgb(87 49 216 / 50%); }
.gradient { background: linear-gradient(to right, #5731d8, #ab31d8); }
Similar colors
#5539ccBlurple#533cc6Royal Nightcore#5511ddSpace Opera#6633bbPurple Emperor#7736d9Hokkaido Lavender#5533ffMeteor Shower#5511ccSea Serpent’s Tears#7711ddVoluptuous Violet
Closest common color name: Blue.
Questions
- What color is #5731D8?
- #5731D8 is a moderate violet, closest to the named color Blurple. It belongs to the blue family of colors.
- What is the RGB value of #5731D8?
- The RGB value is 87, 49, 216: 87 red, 49 green and 216 blue on a 0 to 255 scale.
- What is the complementary color of #5731D8?
- The complementary color is #B2D831, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5731D8?
- White text. Black text has a contrast ratio of 2.84:1 and white text 7.4:1. WCAG asks for at least 4.5:1 for normal text.