#A271EC Color Information

Hex color code: #A271EC

The hex color #A271EC is a eye-catching purple with RGB values of (162, 113, 236) and HSL of (264°, 76%, 68%). It is popular in mobile app design.

Try:
Color NameMedium Purple
HEX
#A271EC
RGB
162, 113, 236
HSL
264°, 76%, 68%
CMYK
31%, 52%, 0%, 7%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #A271EC; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

162, 113, 236

Red: 162 / Green: 113 / Blue: 236

HSL

264°, 76%, 68%

Hue: 264° / Saturation: 76% / Lightness: 68%

CMYK

31%, 52%, 0%, 7%

Cyan: 31% / Magenta: 52% / Yellow: 0% / Key: 7%

What color is #A271EC?

#A271EC is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #A271EC to RGB:

rgb(162, 113, 236)HEX to RGB Converter →

HEX to HSL

Convert #A271EC to HSL:

hsl(264, 76%, 68%)RGB to HSL Converter →

HEX to CMYK

Convert #A271EC to CMYK:

cmyk(31%, 52%, 0%, 7%)Color Converter →

Color Meaning and Usage

A striking purple tone, #A271EC has RGB (162, 113, 236) and HSL (264°, 76%, 68%). Known for evoking creativity and luxury, this blue-purple hue is popular for illustrations and friendly visual themes. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #A271EC is #BAEB6F, creating high-contrast pairings. For softer combinations, try analogous colors like #6F7CEB.

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

Contrast with #A271EC

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #A271EC?

#A271EC is a striking purple color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #A271EC?

#A271EC in RGB is (162, 113, 236) - 162 red, 113 green, and 236 blue.

How to use #A271EC in CSS?

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

What colors go well with #A271EC?

#BAEB6F (complementary), #6F7CEB (analogous), and #752CE2 (lighter shade) work well with #A271EC.