#B28CEF Color Information

Hex color code: #B28CEF

A bold purple shade, #B28CEF appears as (178, 140, 239) in RGB and (263°, 76%, 74%) in HSL. It is frequently seen in web interfaces.

Try:
Color NameMedium Purple
HEX
#B28CEF
RGB
178, 140, 239
HSL
263°, 76%, 74%
CMYK
26%, 41%, 0%, 6%

Shades

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

Generate Gradient

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

Preview in UI

Button

.btn-primary { background-color: #B28CEF; color: #000000; }

Badge

New Feature
.badge { background-color: #B28CEF; color: #000000; }

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 #B28CEF; background-color: #B28CEF15; }

Alert / Toast

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

Link / Accent

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

a { color: #B28CEF; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

178, 140, 239

Red: 178 / Green: 140 / Blue: 239

HSL

263°, 76%, 74%

Hue: 263° / Saturation: 76% / Lightness: 74%

CMYK

26%, 41%, 0%, 6%

Cyan: 26% / Magenta: 41% / Yellow: 0% / Key: 6%

What color is #B28CEF?

#B28CEF is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #B28CEF to RGB:

rgb(178, 140, 239)HEX to RGB Converter →

HEX to HSL

Convert #B28CEF to HSL:

hsl(263, 76%, 74%)RGB to HSL Converter →

HEX to CMYK

Convert #B28CEF to CMYK:

cmyk(26%, 41%, 0%, 6%)Color Converter →

Color Meaning and Usage

A eye-catching purple tone, #B28CEF has RGB (178, 140, 239) and HSL (263°, 76%, 74%). Known for evoking creativity and luxury, this blue-purple hue is commonly used in modern UI design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #B28CEF is #C8EF8A, creating high-contrast pairings. For softer combinations, try analogous colors like #8A96EF.

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

Contrast with #B28CEF

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

Contrast Ratio: 7.89:1
WCAG AA: Pass
WCAG AAA: Pass

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #B28CEF?

#B28CEF is a eye-catching purple color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #B28CEF?

#B28CEF in RGB is (178, 140, 239) - 178 red, 140 green, and 239 blue.

How to use #B28CEF in CSS?

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

What colors go well with #B28CEF?

#C8EF8A (complementary), #8A96EF (analogous), and #8447E6 (lighter shade) work well with #B28CEF.