#AF8CE8 Color Information

Hex color code: #AF8CE8

The hex color #AF8CE8 is a cool purple with RGB values of (175, 140, 232) and HSL of (263°, 67%, 73%). It is commonly used in modern UI design.

Try:
Color NameMedium Purple
HEX
#AF8CE8
RGB
175, 140, 232
HSL
263°, 67%, 73%
CMYK
25%, 40%, 0%, 9%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #AF8CE8; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

175, 140, 232

Red: 175 / Green: 140 / Blue: 232

HSL

263°, 67%, 73%

Hue: 263° / Saturation: 67% / Lightness: 73%

CMYK

25%, 40%, 0%, 9%

Cyan: 25% / Magenta: 40% / Yellow: 0% / Key: 9%

What color is #AF8CE8?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #AF8CE8 to RGB:

rgb(175, 140, 232)HEX to RGB Converter →

HEX to HSL

Convert #AF8CE8 to HSL:

hsl(263, 67%, 73%)RGB to HSL Converter →

HEX to CMYK

Convert #AF8CE8 to CMYK:

cmyk(25%, 40%, 0%, 9%)Color Converter →

Color Meaning and Usage

#AF8CE8 is a cool purple color with RGB values of 175, 140, 232 and HSL of 263°, 67%, 73%. This blue-purple hue evokes creativity and luxury, making it suitable for commonly used in modern UI design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #AF8CE8 is #C5E88C, creating high-contrast pairings. For softer combinations, try analogous colors like #8C97E8.

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

Contrast with #AF8CE8

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

Contrast Ratio: 7.74:1
WCAG AA: Pass
WCAG AAA: Pass

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #AF8CE8?

#AF8CE8 is a cool purple color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #AF8CE8?

#AF8CE8 in RGB is (175, 140, 232) - 175 red, 140 green, and 232 blue.

How to use #AF8CE8 in CSS?

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

What colors go well with #AF8CE8?

#C5E88C (complementary), #8C97E8 (analogous), and #834CDC (lighter shade) work well with #AF8CE8.