#D31CEC color
The hex color #D31CEC is a vivid magenta.
In the RGB color model it is made of 82.7% red, 11% green and 92.5% blue (211, 28, 236).
Its hue angle is 293°, with 85% saturation and 52% lightness. For print, the CMYK equivalent is 11% cyan, 88% magenta, 0% yellow and 7% black.
The closest named color is Piercing Pink (#DD00EE), a difference of 1.5 ΔE, which is barely visible.
Black text is the more readable choice on this background (contrast 5.15:1).
#D31CEC color codes
| HEX | #D31CEC | |
|---|---|---|
| RGB | rgb(211, 28, 236) | |
| RGB percent | rgb(82.7%, 11%, 92.5%) | |
| HSL | hsl(293, 85%, 52%) | |
| HSV / HSB | hsv(293, 88%, 93%) | |
| CMYK | cmyk(11%, 88%, 0%, 7%) | |
| CIE LAB | lab(52.66, 86.14, -62.92) | |
| CIE LCH | lch(52.66, 106.67, 323.86) | |
| CIE XYZ | xyz(42.418, 20.738, 81.109) | |
| Decimal | 13835500 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #D31CEC, 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 #D31CEC | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 5.15:1 | Pass | Fail | Pass |
| Sample text | 4.08:1 | Fail | Fail | Pass |
| #D31CEC as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 4.08:1 | Fail | Fail | Pass |
| Sample text | 5.15:1 | Pass | Fail | Pass |
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 #D31CEC looks to people with the most common types of color vision deficiency.
#0072f1Protanopia
no red cones#4484e8Deuteranopia
no green cones#d5528dTritanopia
no blue cones#7e7e7eAchromatopsia
no color vision
CSS examples
.background { background-color: #d31cec; }
.text { color: #d31cec; }
.border { border: 2px solid #d31cec; }
.transparent { background-color: rgb(211 28 236 / 50%); }
.gradient { background: linear-gradient(to right, #d31cec, #ec1c9d); }
Similar colors
#dd00eePiercing Pink#cc00eeTrippy Velvet#dd00ffPsychedelic Purple#dd11ffPinkman#cc22ffFlirtatious Flamingo#dd11ddDrunk-Tank Pink#dd22ffCotton Candy Explosions#cc33ffFlamingo Queen
Closest common color name: Neon Purple.
Questions
- What color is #D31CEC?
- #D31CEC is a vivid magenta, closest to the named color Piercing Pink. It belongs to the purple family of colors.
- What is the RGB value of #D31CEC?
- The RGB value is 211, 28, 236: 211 red, 28 green and 236 blue on a 0 to 255 scale.
- What is the complementary color of #D31CEC?
- The complementary color is #35EC1C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #D31CEC?
- Black text. Black text has a contrast ratio of 5.15:1 and white text 4.08:1. WCAG asks for at least 4.5:1 for normal text.