#9812BA Color Information

Hex color code: #9812BA

A striking magenta shade, #9812BA appears as (152, 18, 186) in RGB and (288°, 82%, 40%) in HSL. It is often used for branding and logos.

Try:
Color NameDark Violet
HEX
#9812BA
RGB
152, 18, 186
HSL
288°, 82%, 40%
CMYK
18%, 90%, 0%, 27%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #9812BA; 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 #9812BA; background-color: #9812BA15; }

Alert / Toast

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

Link / Accent

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

a { color: #9812BA; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #9812BA in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

152, 18, 186

Red: 152 / Green: 18 / Blue: 186

HSL

288°, 82%, 40%

Hue: 288° / Saturation: 82% / Lightness: 40%

CMYK

18%, 90%, 0%, 27%

Cyan: 18% / Magenta: 90% / Yellow: 0% / Key: 27%

What color is #9812BA?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #9812BA to RGB:

rgb(152, 18, 186)HEX to RGB Converter →

HEX to HSL

Convert #9812BA to HSL:

hsl(288, 82%, 40%)RGB to HSL Converter →

HEX to CMYK

Convert #9812BA to CMYK:

cmyk(18%, 90%, 0%, 27%)Color Converter →

Color Meaning and Usage

A eye-catching magenta tone, #9812BA has RGB (152, 18, 186) and HSL (288°, 82%, 40%). Known for evoking energy and excitement, this highly saturated hue is widely used in graphic design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #9812BA is #34BA12, creating high-contrast pairings. For softer combinations, try analogous colors like #4512BA.

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

Contrast with #9812BA

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #9812BA?

#9812BA is a eye-catching magenta color - a highly saturated hue that evokes energy and excitement.

What is the RGB value of #9812BA?

#9812BA in RGB is (152, 18, 186) - 152 red, 18 green, and 186 blue.

How to use #9812BA in CSS?

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

What colors go well with #9812BA?

#34BA12 (complementary), #4512BA (analogous), and #5F0B74 (lighter shade) work well with #9812BA.