#B318E2 Color Information

Hex color code: #B318E2

A striking magenta shade, #B318E2 appears as (179, 24, 226) in RGB and (286°, 81%, 49%) in HSL. It is often used for branding and logos.

Try:
Color NameDark Violet
HEX
#B318E2
RGB
179, 24, 226
HSL
286°, 81%, 49%
CMYK
21%, 89%, 0%, 11%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #B318E2; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

179, 24, 226

Red: 179 / Green: 24 / Blue: 226

HSL

286°, 81%, 49%

Hue: 286° / Saturation: 81% / Lightness: 49%

CMYK

21%, 89%, 0%, 11%

Cyan: 21% / Magenta: 89% / Yellow: 0% / Key: 11%

What color is #B318E2?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #B318E2 to RGB:

rgb(179, 24, 226)HEX to RGB Converter →

HEX to HSL

Convert #B318E2 to HSL:

hsl(286, 81%, 49%)RGB to HSL Converter →

HEX to CMYK

Convert #B318E2 to CMYK:

cmyk(21%, 89%, 0%, 11%)Color Converter →

Color Meaning and Usage

A striking magenta tone, #B318E2 has RGB (179, 24, 226) and HSL (286°, 81%, 49%). Known for evoking energy and excitement, this highly saturated hue is frequently chosen for fintech and productivity apps. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #B318E2 is #47E218, creating high-contrast pairings. For softer combinations, try analogous colors like #4E18E2.

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

Contrast with #B318E2

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #B318E2?

#B318E2 is a striking magenta color - a highly saturated hue that evokes energy and excitement.

What is the RGB value of #B318E2?

#B318E2 in RGB is (179, 24, 226) - 179 red, 24 green, and 226 blue.

How to use #B318E2 in CSS?

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

What colors go well with #B318E2?

#47E218 (complementary), #4E18E2 (analogous), and #7C109D (lighter shade) work well with #B318E2.