#AB51EC Color Information

Hex color code: #AB51EC

The hex color #AB51EC is a eye-catching purple with RGB values of (171, 81, 236) and HSL of (275°, 80%, 62%). It is popular in mobile app design.

Try:
Color NameMedium Orchid
HEX
#AB51EC
RGB
171, 81, 236
HSL
275°, 80%, 62%
CMYK
28%, 66%, 0%, 7%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #AB51EC; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

171, 81, 236

Red: 171 / Green: 81 / Blue: 236

HSL

275°, 80%, 62%

Hue: 275° / Saturation: 80% / Lightness: 62%

CMYK

28%, 66%, 0%, 7%

Cyan: 28% / Magenta: 66% / Yellow: 0% / Key: 7%

What color is #AB51EC?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #AB51EC to RGB:

rgb(171, 81, 236)HEX to RGB Converter →

HEX to HSL

Convert #AB51EC to HSL:

hsl(275, 80%, 62%)RGB to HSL Converter →

HEX to CMYK

Convert #AB51EC to CMYK:

cmyk(28%, 66%, 0%, 7%)Color Converter →

Color Meaning and Usage

#AB51EC is a vivid purple color with RGB values of 171, 81, 236 and HSL of 275°, 80%, 62%. This magenta-red hue evokes romance and playfulness, making it suitable for a solid option for clean and minimal interfaces. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #AB51EC is #91EC51, creating high-contrast pairings. For softer combinations, try analogous colors like #5D51EC.

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

Contrast with #AB51EC

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

Contrast Ratio: 5.12:1
WCAG AA: Pass
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #AB51EC?

#AB51EC is a vivid purple color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #AB51EC?

#AB51EC in RGB is (171, 81, 236) - 171 red, 81 green, and 236 blue.

How to use #AB51EC in CSS?

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

What colors go well with #AB51EC?

#91EC51 (complementary), #5D51EC (analogous), and #8818D8 (lighter shade) work well with #AB51EC.