#BB22AA color

#BB22AA is rgb(187, 34, 170) in RGB and hsl(307, 69%, 43%) in HSL. The closest CSS named color is mediumvioletred (#c71585, ΔE 8.1). Use white text on it (contrast 5.35:1).

#BB22AAmagenta
HEX#BB22AA
Short HEX#B2A
RGBrgb(187, 34, 170)
RGB percentrgb(73.3%, 13.3%, 66.7%)
HSLhsl(307, 69%, 43%)
HSV / HSBhsv(307, 82%, 73%)
CMYKcmyk(0%, 82%, 9%, 27%)

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

About #BB22AA

#BB22AA is a medium, saturated magenta with a hue angle of 307°. It belongs to the pink & magenta family and reads as a warm color. In the RGB model red is the strongest channel at 187 (73%) and green the weakest at 34 (13%). Colors like this are typically used for headers, navigation bars and strong brand areas.

Color conversions

HEX#BB22AA
Short HEX#B2A
RGBrgb(187, 34, 170)
RGB percentrgb(73.3%, 13.3%, 66.7%)
HSLhsl(307, 69%, 43%)
HSV / HSBhsv(307, 82%, 73%)
CMYKcmyk(0%, 82%, 9%, 27%)
CIELAB (D65)lab(45.1 70.6 -37.1)
Decimal12264106
Binary10111011 00100010 10101010

HEX BB 22 AA → 187, 34, 170 (each pair is a base-16 number: B×16 + B = 187)

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 #BB22AA

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #BB22AARatioAA normalAA largeAAA normalAAA large
White text5.35:1PassPassFailPass
Black text3.92:1FailPassFailFail
White text on #BB22AA
Black text on #BB22AA
#BB22AA text on white
#BB22AA text on black

Relative luminance is 0.1461 (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
#1a5dad

Deuteranopia
#5b72a7

Tritanopia
#c43567

Achromatopsia
#6b6b6b

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
mediumvioletred#c715858.1
darkorchid#9932cc9.3
mediumorchid#ba55d310.6
darkmagenta#8b008b11.1

Nearby colors

CSS

.element {
  color: #bb22aa;
  background-color: rgb(187, 34, 170);
  border: 1px solid hsl(307, 69%, 43%);
  box-shadow: 0 2px 8px rgb(187 34 170 / 50%);
}
:root { --brand: #bb22aa; }

Frequently asked questions

What color is #BB22AA?
A medium saturated magenta in the pink & magenta family. Closest CSS name: mediumvioletred.
What is #BB22AA in RGB?
rgb(187, 34, 170): red 187, green 34, blue 170.
What is the complementary color of #BB22AA?
#22BB33, found by rotating the hue 180°.