#B021AB Color Information

Hex color code: #B021AB

#B021AB is a neutral magenta color. In RGB it is (176, 33, 171), and in HSL it is (302°, 68%, 41%). It is commonly used in modern UI design.

Try:
Color NameViolet Red
HEX
#B021AB
RGB
176, 33, 171
HSL
302°, 68%, 41%
CMYK
0%, 81%, 3%, 31%

Shades

CSS Usage
color: #B021AB;
background-color: #B021AB;
border-color: #B021AB;
box-shadow: 0 0 10px #B021AB;
border: 2px solid #B021AB;
Tailwind Usage
bg-[#B021AB]
text-[#B021AB]
border-[#B021AB]
shadow-[0_0_10px_B021AB]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #B021AB, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #B021AB; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #B021AB; color: #FFFFFF; }

Text Highlight

The quick brown fox jumps over the lazy dog. highlighted text example shows how the color looks as a text highlight.

Card

Card Title

This card uses your color as a border accent.

.card-accent { border: 2px solid #B021AB; background-color: #B021AB15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #B021AB20; border-left: 4px solid #B021AB; }

Link / Accent

This is a paragraph with a link using your color. The color can be applied to interactive elements.

a { color: #B021AB; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #B021AB in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

176, 33, 171

Red: 176 / Green: 33 / Blue: 171

HSL

302°, 68%, 41%

Hue: 302° / Saturation: 68% / Lightness: 41%

CMYK

0%, 81%, 3%, 31%

Cyan: 0% / Magenta: 81% / Yellow: 3% / Key: 31%

What color is #B021AB?

#B021AB is a magenta-red hue associated with romance and playfulness.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #B021AB to RGB:

rgb(176, 33, 171)HEX to RGB Converter →

HEX to HSL

Convert #B021AB to HSL:

hsl(302, 68%, 41%)RGB to HSL Converter →

HEX to CMYK

Convert #B021AB to CMYK:

cmyk(0%, 81%, 3%, 31%)Color Converter →

Color Meaning and Usage

#B021AB is a neutral magenta color with RGB values of 176, 33, 171 and HSL of 302°, 68%, 41%. This magenta-red hue evokes romance and playfulness, making it suitable for widely used in graphic design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #B021AB is #21B026, creating high-contrast pairings. For softer combinations, try analogous colors like #6D21B0.

Use #B021AB in CSS: color: #B021AB or background-color: #B021AB. Create palettes with Color Palette Generator or check contrast with Contrast Checker.

Contrast with #B021AB

Sample text on this color - The quick brown fox jumps over the lazy dog.

Contrast Ratio: 3.65:1
WCAG AA: Fail
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #B021AB?

#B021AB is a neutral magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #B021AB?

#B021AB in RGB is (176, 33, 171) - 176 red, 33 green, and 171 blue.

How to use #B021AB in CSS?

Use #B021AB directly in your CSS properties like color or background-color.

What colors go well with #B021AB?

#21B026 (complementary), #6D21B0 (analogous), and #6F156C (lighter shade) work well with #B021AB.