#BA7AEB Color Information

Hex color code: #BA7AEB

#BA7AEB is a vivid purple color. In RGB it is (186, 122, 235), and in HSL it is (274°, 74%, 70%). It is commonly used in modern UI design.

Try:
Color NameMedium Purple
HEX
#BA7AEB
RGB
186, 122, 235
HSL
274°, 74%, 70%
CMYK
21%, 48%, 0%, 8%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #BA7AEB; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

186, 122, 235

Red: 186 / Green: 122 / Blue: 235

HSL

274°, 74%, 70%

Hue: 274° / Saturation: 74% / Lightness: 70%

CMYK

21%, 48%, 0%, 8%

Cyan: 21% / Magenta: 48% / Yellow: 0% / Key: 8%

What color is #BA7AEB?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #BA7AEB to RGB:

rgb(186, 122, 235)HEX to RGB Converter →

HEX to HSL

Convert #BA7AEB to HSL:

hsl(274, 74%, 70%)RGB to HSL Converter →

HEX to CMYK

Convert #BA7AEB to CMYK:

cmyk(21%, 48%, 0%, 8%)Color Converter →

Color Meaning and Usage

#BA7AEB is a dynamic purple color with RGB values of 186, 122, 235 and HSL of 274°, 74%, 70%. This magenta-red hue evokes romance and playfulness, making it suitable for often used for branding and logos. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #BA7AEB is #ABEB7A, creating high-contrast pairings. For softer combinations, try analogous colors like #817AEB.

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

Contrast with #BA7AEB

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #BA7AEB?

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

What is the RGB value of #BA7AEB?

#BA7AEB in RGB is (186, 122, 235) - 186 red, 122 green, and 235 blue.

How to use #BA7AEB in CSS?

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

What colors go well with #BA7AEB?

#ABEB7A (complementary), #817AEB (analogous), and #9837E1 (lighter shade) work well with #BA7AEB.