#BA40E2 Color Information
Hex color code: #BA40E2
The hex color #BA40E2 is a dynamic magenta with RGB values of (186, 64, 226) and HSL of (285°, 74%, 57%). It is typically applied in digital products.
Shades
color: #BA40E2; background-color: #BA40E2; border-color: #BA40E2; box-shadow: 0 0 10px #BA40E2; border: 2px solid #BA40E2;
bg-[#BA40E2] text-[#BA40E2] border-[#BA40E2] shadow-[0_0_10px_BA40E2]
Generate Gradient
background: linear-gradient(90deg, #BA40E2, #FF5733);
Preview in UI
Button
Badge
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.
Alert / Toast
Link / Accent
This is a paragraph with a link using your color. The color can be applied to interactive elements.
Related Colors
Complementary
Analogous
Triadic
Split Complementary
Tetradic
Monochromatic
Popular Colors
Common HEX Colors
Color Theory
Relationships based on the position of #BA40E2 in the color wheel.
RGB, HSL and CMYK Values
RGB
186, 64, 226
Red: 186 / Green: 64 / Blue: 226
HSL
285°, 74%, 57%
Hue: 285° / Saturation: 74% / Lightness: 57%
CMYK
18%, 72%, 0%, 11%
Cyan: 18% / Magenta: 72% / Yellow: 0% / Key: 11%
What color is #BA40E2?
#BA40E2 is a magenta-red hue associated with romance and playfulness.
Color Shades
Complementary Colors
Color Palette
Color Meaning and Usage
#BA40E2 is a bold magenta color with RGB values of 186, 64, 226 and HSL of 285°, 74%, 57%. This magenta-red hue evokes romance and playfulness, making it suitable for popular for illustrations and friendly visual themes. Lighter variations like #FFFFFF create softer gradients.
The complementary color of #BA40E2 is #69E240, creating high-contrast pairings. For softer combinations, try analogous colors like #6940E2.
Use #BA40E2 in CSS: color: #BA40E2 or background-color: #BA40E2. Create palettes with Color Palette Generator or check contrast with Contrast Checker.
Contrast with #BA40E2
Sample text on this color - The quick brown fox jumps over the lazy dog.
Need more control? Contrast Checker →
Frequently Asked Questions
What color is #BA40E2?
#BA40E2 is a bold magenta color - a magenta-red hue that evokes romance and playfulness.
What is the RGB value of #BA40E2?
#BA40E2 in RGB is (186, 64, 226) - 186 red, 64 green, and 226 blue.
How to use #BA40E2 in CSS?
Use #BA40E2 directly in your CSS properties like color or background-color.