#AFA2B2 Color Information

Hex color code: #AFA2B2

A muted magenta shade, #AFA2B2 appears as (175, 162, 178) in RGB and (289°, 9%, 67%) in HSL. It is typically applied in digital products.

Try:
Color NameSilver
HEX
#AFA2B2
RGB
175, 162, 178
HSL
289°, 9%, 67%
CMYK
2%, 9%, 0%, 30%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #AFA2B2; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

175, 162, 178

Red: 175 / Green: 162 / Blue: 178

HSL

289°, 9%, 67%

Hue: 289° / Saturation: 9% / Lightness: 67%

CMYK

2%, 9%, 0%, 30%

Cyan: 2% / Magenta: 9% / Yellow: 0% / Key: 30%

What color is #AFA2B2?

#AFA2B2 is a desaturated neutral associated with balance and subtlety.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #AFA2B2 to RGB:

rgb(175, 162, 178)HEX to RGB Converter →

HEX to HSL

Convert #AFA2B2 to HSL:

hsl(289, 9%, 67%)RGB to HSL Converter →

HEX to CMYK

Convert #AFA2B2 to CMYK:

cmyk(2%, 9%, 0%, 30%)Color Converter →

Color Meaning and Usage

#AFA2B2 is a neutral magenta color with RGB values of 175, 162, 178 and HSL of 289°, 9%, 67%. This desaturated neutral evokes balance and subtlety, making it suitable for popular for illustrations and friendly visual themes. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #AFA2B2 is #A6B2A3, creating high-contrast pairings. For softer combinations, try analogous colors like #A8A3B2.

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

Contrast with #AFA2B2

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #AFA2B2?

#AFA2B2 is a neutral magenta color - a desaturated neutral that evokes balance and subtlety.

What is the RGB value of #AFA2B2?

#AFA2B2 in RGB is (175, 162, 178) - 175 red, 162 green, and 178 blue.

How to use #AFA2B2 in CSS?

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

What colors go well with #AFA2B2?

#A6B2A3 (complementary), #A8A3B2 (analogous), and #8C7A90 (lighter shade) work well with #AFA2B2.