#BA31E3 Color Information
Hex color code: #BA31E3
A bold magenta shade, #BA31E3 appears as (186, 49, 227) in RGB and (286°, 76%, 54%) in HSL. It is often used for branding and logos.
Shades
color: #BA31E3; background-color: #BA31E3; border-color: #BA31E3; box-shadow: 0 0 10px #BA31E3; border: 2px solid #BA31E3;
bg-[#BA31E3] text-[#BA31E3] border-[#BA31E3] shadow-[0_0_10px_BA31E3]
Generate Gradient
background: linear-gradient(90deg, #BA31E3, #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 #BA31E3 in the color wheel.
RGB, HSL and CMYK Values
RGB
186, 49, 227
Red: 186 / Green: 49 / Blue: 227
HSL
286°, 76%, 54%
Hue: 286° / Saturation: 76% / Lightness: 54%
CMYK
18%, 78%, 0%, 11%
Cyan: 18% / Magenta: 78% / Yellow: 0% / Key: 11%
What color is #BA31E3?
#BA31E3 is a magenta-red hue associated with romance and playfulness.
Color Shades
Complementary Colors
Color Palette
Color Meaning and Usage
#BA31E3 is a vivid magenta color with RGB values of 186, 49, 227 and HSL of 286°, 76%, 54%. This magenta-red hue evokes romance and playfulness, making it suitable for well suited for marketing pages and hero sections. Lighter variations like #FFFFFF create softer gradients.
The complementary color of #BA31E3 is #5AE331, creating high-contrast pairings. For softer combinations, try analogous colors like #6031E3.
Use #BA31E3 in CSS: color: #BA31E3 or background-color: #BA31E3. Create palettes with Color Palette Generator or check contrast with Contrast Checker.
Contrast with #BA31E3
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 #BA31E3?
#BA31E3 is a vivid magenta color - a magenta-red hue that evokes romance and playfulness.
What is the RGB value of #BA31E3?
#BA31E3 in RGB is (186, 49, 227) - 186 red, 49 green, and 227 blue.
How to use #BA31E3 in CSS?
Use #BA31E3 directly in your CSS properties like color or background-color.