#B21097 Color Information

Hex color code: #B21097

The hex color #B21097 is a striking magenta with RGB values of (178, 16, 151) and HSL of (310°, 84%, 38%). It is often used for branding and logos.

Try:
Color NameMedium Violet Red
HEX
#B21097
RGB
178, 16, 151
HSL
310°, 84%, 38%
CMYK
0%, 91%, 15%, 30%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #B21097; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

178, 16, 151

Red: 178 / Green: 16 / Blue: 151

HSL

310°, 84%, 38%

Hue: 310° / Saturation: 84% / Lightness: 38%

CMYK

0%, 91%, 15%, 30%

Cyan: 0% / Magenta: 91% / Yellow: 15% / Key: 30%

What color is #B21097?

#B21097 is a highly saturated hue associated with energy and excitement.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #B21097 to RGB:

rgb(178, 16, 151)HEX to RGB Converter →

HEX to HSL

Convert #B21097 to HSL:

hsl(310, 84%, 38%)RGB to HSL Converter →

HEX to CMYK

Convert #B21097 to CMYK:

cmyk(0%, 91%, 15%, 30%)Color Converter →

Color Meaning and Usage

A bold magenta tone, #B21097 has RGB (178, 16, 151) and HSL (310°, 84%, 38%). Known for evoking energy and excitement, this highly saturated hue is well suited for marketing pages and hero sections. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #B21097 is #10B22B, creating high-contrast pairings. For softer combinations, try analogous colors like #7C10B2.

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

Contrast with #B21097

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #B21097?

#B21097 is a bold magenta color - a highly saturated hue that evokes energy and excitement.

What is the RGB value of #B21097?

#B21097 in RGB is (178, 16, 151) - 178 red, 16 green, and 151 blue.

How to use #B21097 in CSS?

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

What colors go well with #B21097?

#10B22B (complementary), #7C10B2 (analogous), and #6C095B (lighter shade) work well with #B21097.