About #B21FB2
#B21FB2 is a medium-dark, saturated magenta with a hue angle of 300°. It belongs to the pink & magenta family and reads as a warm color. In the RGB model red is the strongest channel at 178 (70%) and green the weakest at 31 (12%). Colors like this are typically used for headers, navigation bars and strong brand areas.
- It is step 600 in the generated magenta scale on this site.
Color conversions
| HEX | #B21FB2 |
|---|---|
| RGB | rgb(178, 31, 178) |
| RGB percent | rgb(69.8%, 12.2%, 69.8%) |
| HSL | hsl(300, 70%, 41%) |
| HSV / HSB | hsv(300, 83%, 70%) |
| CMYK | cmyk(0%, 83%, 0%, 30%) |
| CIELAB (D65) | lab(43.7 70.7 -44.1) |
| Decimal | 11673522 |
| Binary | 10110010 00011111 10110010 |
HEX B2 1F B2 → 178, 31, 178 (each pair is a base-16 number: B×16 + 2 = 178)
Color harmonies
Complementary
Analogous
Triadic
Split-complementary
Tetradic
Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.
Tints and shades of #B21FB2
Tints (mixed with white)
Shades (mixed with black)
Tones (mixed with gray)
Contrast and accessibility
| Text on #B21FB2 | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White text | 5.63:1 | Pass | Pass | Fail | Pass |
| Black text | 3.73:1 | Fail | Pass | Fail | Fail |
Relative luminance is 0.1366 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.
Color blindness simulation
Protanopia#005cb6
Deuteranopia#4d6eaf
Tritanopia#b83b6b
Achromatopsia#676767
With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 29.4). Do not rely on it alone to signal status; add an icon or text label. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.
Similar named colors
| Name | HEX | ΔE 2000 |
|---|---|---|
| darkorchid | #9932cc | 6.8 |
| darkviolet | #9400d3 | 8.9 |
| darkmagenta | #8b008b | 9.8 |
| mediumvioletred | #c71585 | 10.5 |
CSS
.element {
color: #b21fb2;
background-color: rgb(178, 31, 178);
border: 1px solid hsl(300, 70%, 41%);
box-shadow: 0 2px 8px rgb(178 31 178 / 50%);
}
:root { --brand: #b21fb2; }