#AB56C2 Color Information

Hex color code: #AB56C2

The hex color #AB56C2 is a gentle magenta with RGB values of (171, 86, 194) and HSL of (287°, 47%, 55%). It is often used for branding and logos.

Try:
Color NameMedium Orchid
HEX
#AB56C2
RGB
171, 86, 194
HSL
287°, 47%, 55%
CMYK
12%, 56%, 0%, 24%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #AB56C2; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

171, 86, 194

Red: 171 / Green: 86 / Blue: 194

HSL

287°, 47%, 55%

Hue: 287° / Saturation: 47% / Lightness: 55%

CMYK

12%, 56%, 0%, 24%

Cyan: 12% / Magenta: 56% / Yellow: 0% / Key: 24%

What color is #AB56C2?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #AB56C2 to RGB:

rgb(171, 86, 194)HEX to RGB Converter →

HEX to HSL

Convert #AB56C2 to HSL:

hsl(287, 47%, 55%)RGB to HSL Converter →

HEX to CMYK

Convert #AB56C2 to CMYK:

cmyk(12%, 56%, 0%, 24%)Color Converter →

Color Meaning and Usage

A subtle magenta tone, #AB56C2 has RGB (171, 86, 194) and HSL (287°, 47%, 55%). Known for evoking romance and playfulness, this magenta-red hue is widely used in graphic design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #AB56C2 is #6EC256, creating high-contrast pairings. For softer combinations, try analogous colors like #7556C2.

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

Contrast with #AB56C2

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #AB56C2?

#AB56C2 is a subtle magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #AB56C2?

#AB56C2 in RGB is (171, 86, 194) - 171 red, 86 green, and 194 blue.

How to use #AB56C2 in CSS?

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

What colors go well with #AB56C2?

#6EC256 (complementary), #7556C2 (analogous), and #813696 (lighter shade) work well with #AB56C2.