#AF7FDC Color Information

Hex color code: #AF7FDC

A understated purple shade, #AF7FDC appears as (175, 127, 220) in RGB and (271°, 57%, 68%) in HSL. It is widely used in graphic design.

Try:
Color NameMedium Purple
HEX
#AF7FDC
RGB
175, 127, 220
HSL
271°, 57%, 68%
CMYK
20%, 42%, 0%, 14%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #AF7FDC; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

175, 127, 220

Red: 175 / Green: 127 / Blue: 220

HSL

271°, 57%, 68%

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

CMYK

20%, 42%, 0%, 14%

Cyan: 20% / Magenta: 42% / Yellow: 0% / Key: 14%

What color is #AF7FDC?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #AF7FDC to RGB:

rgb(175, 127, 220)HEX to RGB Converter →

HEX to HSL

Convert #AF7FDC to HSL:

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

HEX to CMYK

Convert #AF7FDC to CMYK:

cmyk(20%, 42%, 0%, 14%)Color Converter →

Color Meaning and Usage

A balanced purple tone, #AF7FDC has RGB (175, 127, 220) and HSL (271°, 57%, 68%). Known for evoking romance and playfulness, this magenta-red hue is popular for illustrations and friendly visual themes. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #AF7FDC is #ACDC7F, creating high-contrast pairings. For softer combinations, try analogous colors like #807FDC.

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

Contrast with #AF7FDC

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #AF7FDC?

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

What is the RGB value of #AF7FDC?

#AF7FDC in RGB is (175, 127, 220) - 175 red, 127 green, and 220 blue.

How to use #AF7FDC in CSS?

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

What colors go well with #AF7FDC?

#ACDC7F (complementary), #807FDC (analogous), and #8943CB (lighter shade) work well with #AF7FDC.