#AF81DA Color Information

Hex color code: #AF81DA

The hex color #AF81DA is a muted purple with RGB values of (175, 129, 218) and HSL of (271°, 55%, 68%). It is typically applied in digital products.

Try:
Color NameMedium Purple
HEX
#AF81DA
RGB
175, 129, 218
HSL
271°, 55%, 68%
CMYK
20%, 41%, 0%, 15%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #AF81DA; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

175, 129, 218

Red: 175 / Green: 129 / Blue: 218

HSL

271°, 55%, 68%

Hue: 271° / Saturation: 55% / Lightness: 68%

CMYK

20%, 41%, 0%, 15%

Cyan: 20% / Magenta: 41% / Yellow: 0% / Key: 15%

What color is #AF81DA?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #AF81DA to RGB:

rgb(175, 129, 218)HEX to RGB Converter →

HEX to HSL

Convert #AF81DA to HSL:

hsl(271, 55%, 68%)RGB to HSL Converter →

HEX to CMYK

Convert #AF81DA to CMYK:

cmyk(20%, 41%, 0%, 15%)Color Converter →

Color Meaning and Usage

A balanced purple tone, #AF81DA has RGB (175, 129, 218) and HSL (271°, 55%, 68%). Known for evoking romance and playfulness, this magenta-red hue is well suited for marketing pages and hero sections. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #AF81DA is #ACDA81, creating high-contrast pairings. For softer combinations, try analogous colors like #8281DA.

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

Contrast with #AF81DA

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #AF81DA?

#AF81DA is a balanced purple color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #AF81DA?

#AF81DA in RGB is (175, 129, 218) - 175 red, 129 green, and 218 blue.

How to use #AF81DA in CSS?

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

What colors go well with #AF81DA?

#ACDA81 (complementary), #8281DA (analogous), and #8945C9 (lighter shade) work well with #AF81DA.