#B21DC2 color
The hex color #B21DC2 is a moderate magenta.
In the RGB color model it is made of 69.8% red, 11.4% green and 76.1% blue (178, 29, 194).
Its hue angle is 294°, with 74% saturation and 44% lightness. For print, the CMYK equivalent is 8% cyan, 85% magenta, 0% yellow and 24% black.
The closest named color is Magentleman (#AA22BB), a difference of 1.6 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 5.46:1).
#B21DC2 color codes
| HEX | #B21DC2 | |
|---|---|---|
| RGB | rgb(178, 29, 194) | |
| RGB percent | rgb(69.8%, 11.4%, 76.1%) | |
| HSL | hsl(294, 74%, 44%) | |
| HSV / HSB | hsv(294, 85%, 76%) | |
| CMYK | cmyk(8%, 85%, 0%, 24%) | |
| CIE LAB | lab(44.58, 73.7, -52.16) | |
| CIE LCH | lch(44.58, 90.29, 324.71) | |
| CIE XYZ | xyz(28.536, 14.241, 52.274) | |
| Decimal | 11673026 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #B21DC2, 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 #B21DC2 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.85:1 | Fail | Fail | Pass |
| Sample text | 5.46:1 | Pass | Fail | Pass |
| #B21DC2 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 5.46:1 | Pass | Fail | Pass |
| Sample text | 3.85:1 | Fail | 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 #B21DC2 looks to people with the most common types of color vision deficiency.
#005fc6Protanopia
no red cones#406fbfDeuteranopia
no green cones#b54374Tritanopia
no blue cones#696969Achromatopsia
no color vision
CSS examples
.background { background-color: #b21dc2; }
.text { color: #b21dc2; }
.border { border: 2px solid #b21dc2; }
.transparent { background-color: rgb(178 29 194 / 50%); }
.gradient { background: linear-gradient(to right, #b21dc2, #c21d7f); }
Similar colors
#aa22bbMagentleman#aa22ccTelemagenta#aa00ccFerocious Fuchsia#aa11aaMagentle#a104c3Nebula#ad03deVibrant Purple#bb00aaPurple Pirate#bb11aaPunk Rock Purple
Closest common color name: Dark Orchid.
Questions
- What color is #B21DC2?
- #B21DC2 is a moderate magenta, closest to the named color Magentleman. It belongs to the purple family of colors.
- What is the RGB value of #B21DC2?
- The RGB value is 178, 29, 194: 178 red, 29 green and 194 blue on a 0 to 255 scale.
- What is the complementary color of #B21DC2?
- The complementary color is #2DC21D, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #B21DC2?
- White text. Black text has a contrast ratio of 3.85:1 and white text 5.46:1. WCAG asks for at least 4.5:1 for normal text.