#8A12BA Color Information

Hex color code: #8A12BA

A vivid purple shade, #8A12BA appears as (138, 18, 186) in RGB and (283°, 82%, 40%) in HSL. It is commonly used in modern UI design.

Try:
Color NameDark Violet
HEX
#8A12BA
RGB
138, 18, 186
HSL
283°, 82%, 40%
CMYK
26%, 90%, 0%, 27%

Shades

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

Generate Gradient

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

Preview in UI

Button

.btn-primary { background-color: #8A12BA; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #8A12BA; 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 #8A12BA; background-color: #8A12BA15; }

Alert / Toast

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

Link / Accent

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

a { color: #8A12BA; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #8A12BA in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

138, 18, 186

Red: 138 / Green: 18 / Blue: 186

HSL

283°, 82%, 40%

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

CMYK

26%, 90%, 0%, 27%

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

What color is #8A12BA?

#8A12BA is a highly saturated hue associated with energy and excitement.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #8A12BA to RGB:

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

HEX to HSL

Convert #8A12BA to HSL:

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

HEX to CMYK

Convert #8A12BA to CMYK:

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

Color Meaning and Usage

A bold purple tone, #8A12BA has RGB (138, 18, 186) and HSL (283°, 82%, 40%). Known for evoking energy and excitement, this highly saturated hue is well suited for marketing pages and hero sections. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #8A12BA is #42BA12, creating high-contrast pairings. For softer combinations, try analogous colors like #3712BA.

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

Contrast with #8A12BA

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #8A12BA?

#8A12BA is a bold purple color - a highly saturated hue that evokes energy and excitement.

What is the RGB value of #8A12BA?

#8A12BA in RGB is (138, 18, 186) - 138 red, 18 green, and 186 blue.

How to use #8A12BA in CSS?

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

What colors go well with #8A12BA?

#42BA12 (complementary), #3712BA (analogous), and #560B74 (lighter shade) work well with #8A12BA.