#B21CBA Color Information

Hex color code: #B21CBA

#B21CBA is a vivid magenta color. In RGB it is (178, 28, 186), and in HSL it is (297°, 74%, 42%). It is commonly used in modern UI design.

Try:
Color NameDark Orchid
HEX
#B21CBA
RGB
178, 28, 186
HSL
297°, 74%, 42%
CMYK
4%, 85%, 0%, 27%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #B21CBA; 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 #B21CBA; background-color: #B21CBA15; }

Alert / Toast

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

Link / Accent

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

a { color: #B21CBA; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

178, 28, 186

Red: 178 / Green: 28 / Blue: 186

HSL

297°, 74%, 42%

Hue: 297° / Saturation: 74% / Lightness: 42%

CMYK

4%, 85%, 0%, 27%

Cyan: 4% / Magenta: 85% / Yellow: 0% / Key: 27%

What color is #B21CBA?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #B21CBA to RGB:

rgb(178, 28, 186)HEX to RGB Converter →

HEX to HSL

Convert #B21CBA to HSL:

hsl(297, 74%, 42%)RGB to HSL Converter →

HEX to CMYK

Convert #B21CBA to CMYK:

cmyk(4%, 85%, 0%, 27%)Color Converter →

Color Meaning and Usage

A dynamic magenta tone, #B21CBA has RGB (178, 28, 186) and HSL (297°, 74%, 42%). Known for evoking romance and playfulness, this magenta-red hue is widely used in graphic design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #B21CBA is #24BA1C, creating high-contrast pairings. For softer combinations, try analogous colors like #631CBA.

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

Contrast with #B21CBA

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #B21CBA?

#B21CBA is a dynamic magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #B21CBA?

#B21CBA in RGB is (178, 28, 186) - 178 red, 28 green, and 186 blue.

How to use #B21CBA in CSS?

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

What colors go well with #B21CBA?

#24BA1C (complementary), #631CBA (analogous), and #731278 (lighter shade) work well with #B21CBA.