#A871A1 Color Information

Hex color code: #A871A1

The hex color #A871A1 is a subtle magenta with RGB values of (168, 113, 161) and HSL of (308°, 24%, 55%). It is popular in mobile app design.

Try:
Color NameRosy Brown
HEX
#A871A1
RGB
168, 113, 161
HSL
308°, 24%, 55%
CMYK
0%, 33%, 4%, 34%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #A871A1; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

168, 113, 161

Red: 168 / Green: 113 / Blue: 161

HSL

308°, 24%, 55%

Hue: 308° / Saturation: 24% / Lightness: 55%

CMYK

0%, 33%, 4%, 34%

Cyan: 0% / Magenta: 33% / Yellow: 4% / Key: 34%

What color is #A871A1?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #A871A1 to RGB:

rgb(168, 113, 161)HEX to RGB Converter →

HEX to HSL

Convert #A871A1 to HSL:

hsl(308, 24%, 55%)RGB to HSL Converter →

HEX to CMYK

Convert #A871A1 to CMYK:

cmyk(0%, 33%, 4%, 34%)Color Converter →

Color Meaning and Usage

#A871A1 is a subtle magenta color with RGB values of 168, 113, 161 and HSL of 308°, 24%, 55%. This magenta-red hue evokes romance and playfulness, making it suitable for commonly used in modern UI design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #A871A1 is #71A878, creating high-contrast pairings. For softer combinations, try analogous colors like #9471A8.

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

Contrast with #A871A1

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #A871A1?

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

What is the RGB value of #A871A1?

#A871A1 in RGB is (168, 113, 161) - 168 red, 113 green, and 161 blue.

How to use #A871A1 in CSS?

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

What colors go well with #A871A1?

#71A878 (complementary), #9471A8 (analogous), and #7E4E78 (lighter shade) work well with #A871A1.