#B21FB2 color

#B21FB2 is rgb(178, 31, 178) in RGB and hsl(300, 70%, 41%) in HSL. The closest CSS named color is darkorchid (#9932cc, ΔE 6.8). Use white text on it (contrast 5.63:1).

#B21FB2magenta
HEX#B21FB2
RGBrgb(178, 31, 178)
RGB percentrgb(69.8%, 12.2%, 69.8%)
HSLhsl(300, 70%, 41%)
HSV / HSBhsv(300, 83%, 70%)
CMYKcmyk(0%, 83%, 0%, 30%)
CIELAB (D65)lab(43.7 70.7 -44.1)

Edit in the color converter → · Check contrast → · Shades →

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.

Color conversions

HEX#B21FB2
RGBrgb(178, 31, 178)
RGB percentrgb(69.8%, 12.2%, 69.8%)
HSLhsl(300, 70%, 41%)
HSV / HSBhsv(300, 83%, 70%)
CMYKcmyk(0%, 83%, 0%, 30%)
CIELAB (D65)lab(43.7 70.7 -44.1)
Decimal11673522
Binary10110010 00011111 10110010

HEX B2 1F B2 → 178, 31, 178 (each pair is a base-16 number: B×16 + 2 = 178)

Color harmonies

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 #B21FB2RatioAA normalAA largeAAA normalAAA large
White text5.63:1PassPassFailPass
Black text3.73:1FailPassFailFail
White text on #B21FB2
Black text on #B21FB2
#B21FB2 text on white
#B21FB2 text on black

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

NameHEXΔE 2000
darkorchid#9932cc6.8
darkviolet#9400d38.9
darkmagenta#8b008b9.8
mediumvioletred#c7158510.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; }

Frequently asked questions

What color is #B21FB2?
A medium-dark saturated magenta in the pink & magenta family. Closest CSS name: darkorchid.
What is #B21FB2 in RGB?
rgb(178, 31, 178): red 178, green 31, blue 178.
What is the complementary color of #B21FB2?
#1FB21F, found by rotating the hue 180°.