#B21F81 color

#B21F81 is rgb(178, 31, 129) in RGB and hsl(320, 70%, 41%) in HSL. The closest CSS named color is mediumvioletred (#c71585, ΔE 4). Use white text on it (contrast 6.17:1).

#B21F81pink
HEX#B21F81
RGBrgb(178, 31, 129)
RGB percentrgb(69.8%, 12.2%, 50.6%)
HSLhsl(320, 70%, 41%)
HSV / HSBhsv(320, 83%, 70%)
CMYKcmyk(0%, 83%, 28%, 30%)
CIELAB (D65)lab(41.3 63.9 -18.4)

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

About #B21F81

#B21F81 is a medium-dark, saturated pink with a hue angle of 320°. 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#B21F81
RGBrgb(178, 31, 129)
RGB percentrgb(69.8%, 12.2%, 50.6%)
HSLhsl(320, 70%, 41%)
HSV / HSBhsv(320, 83%, 70%)
CMYKcmyk(0%, 83%, 28%, 30%)
CIELAB (D65)lab(41.3 63.9 -18.4)
Decimal11673473
Binary10110010 00011111 10000001

HEX B2 1F 81 → 178, 31, 129 (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 #B21F81

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #B21F81RatioAA normalAA largeAAA normalAAA large
White text6.17:1PassPassFailPass
Black text3.41:1FailPassFailFail
White text on #B21F81
Black text on #B21F81
#B21F81 text on white
#B21F81 text on black

Relative luminance is 0.1203 (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
#365283

Deuteranopia
#636a7e

Tritanopia
#bf1a4f

Achromatopsia
#616161

With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 27.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
mediumvioletred#c715854
darkmagenta#8b008b10.8
purple#80008012.3
darkorchid#9932cc15.2

CSS

.element {
  color: #b21f81;
  background-color: rgb(178, 31, 129);
  border: 1px solid hsl(320, 70%, 41%);
  box-shadow: 0 2px 8px rgb(178 31 129 / 50%);
}
:root { --brand: #b21f81; }

Frequently asked questions

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