#AF7FDE Color Information

Hex color code: #AF7FDE

#AF7FDE is a understated purple color. In RGB it is (175, 127, 222), and in HSL it is (270°, 59%, 68%). It is popular in mobile app design.

Try:
Color NameMedium Purple
HEX
#AF7FDE
RGB
175, 127, 222
HSL
270°, 59%, 68%
CMYK
21%, 43%, 0%, 13%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #AF7FDE; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

175, 127, 222

Red: 175 / Green: 127 / Blue: 222

HSL

270°, 59%, 68%

Hue: 270° / Saturation: 59% / Lightness: 68%

CMYK

21%, 43%, 0%, 13%

Cyan: 21% / Magenta: 43% / Yellow: 0% / Key: 13%

What color is #AF7FDE?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #AF7FDE to RGB:

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

HEX to HSL

Convert #AF7FDE to HSL:

hsl(270, 59%, 68%)RGB to HSL Converter →

HEX to CMYK

Convert #AF7FDE to CMYK:

cmyk(21%, 43%, 0%, 13%)Color Converter →

Color Meaning and Usage

#AF7FDE is a balanced purple color with RGB values of 175, 127, 222 and HSL of 270°, 59%, 68%. This magenta-red hue evokes romance and playfulness, making it suitable for often used for buttons, highlights, and accents. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #AF7FDE is #ADDE7D, creating high-contrast pairings. For softer combinations, try analogous colors like #7D7DDE.

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

Contrast with #AF7FDE

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #AF7FDE?

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

What is the RGB value of #AF7FDE?

#AF7FDE in RGB is (175, 127, 222) - 175 red, 127 green, and 222 blue.

How to use #AF7FDE in CSS?

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

What colors go well with #AF7FDE?

#ADDE7D (complementary), #7D7DDE (analogous), and #8740CE (lighter shade) work well with #AF7FDE.