#B21F50 color

#B21F50 is rgb(178, 31, 80) in RGB and hsl(340, 70%, 41%) in HSL. The closest CSS named color is mediumvioletred (#c71585, ΔE 12). Use white text on it (contrast 6.55:1).

#B21F50crimson
HEX#B21F50
RGBrgb(178, 31, 80)
RGB percentrgb(69.8%, 12.2%, 31.4%)
HSLhsl(340, 70%, 41%)
HSV / HSBhsv(340, 83%, 70%)
CMYKcmyk(0%, 83%, 55%, 30%)
CIELAB (D65)lab(39.6 59.1 9.9)

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

About #B21F50

#B21F50 is a medium-dark, saturated crimson with a hue angle of 340°. 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#B21F50
RGBrgb(178, 31, 80)
RGB percentrgb(69.8%, 12.2%, 31.4%)
HSLhsl(340, 70%, 41%)
HSV / HSBhsv(340, 83%, 70%)
CMYKcmyk(0%, 83%, 55%, 30%)
CIELAB (D65)lab(39.6 59.1 9.9)
Decimal11673424
Binary10110010 00011111 01010000

HEX B2 1F 50 → 178, 31, 80 (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 #B21F50

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #B21F50RatioAA normalAA largeAAA normalAAA large
White text6.55:1PassPassFailPass
Black text3.20:1FailPassFailFail
White text on #B21F50
Black text on #B21F50
#B21F50 text on white
#B21F50 text on black

Relative luminance is 0.1102 (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
#494b51

Deuteranopia
#6e684c

Tritanopia
#c30035

Achromatopsia
#5d5d5d

With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 36.6). 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#c7158512
crimson#dc143c12.4
brown#a52a2a12.4
firebrick#b2222214.4

CSS

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

Frequently asked questions

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