#AF23A5 Color Information

Hex color code: #AF23A5

#AF23A5 is a neutral magenta color. In RGB it is (175, 35, 165), and in HSL it is (304°, 67%, 41%). It is frequently seen in web interfaces.

Try:
Color NameViolet Red
HEX
#AF23A5
RGB
175, 35, 165
HSL
304°, 67%, 41%
CMYK
0%, 80%, 6%, 31%

Shades

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

Generate Gradient

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

Preview in UI

Button

.btn-primary { background-color: #AF23A5; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #AF23A5; color: #FFFFFF; }

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 #AF23A5; background-color: #AF23A515; }

Alert / Toast

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

Link / Accent

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

a { color: #AF23A5; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

175, 35, 165

Red: 175 / Green: 35 / Blue: 165

HSL

304°, 67%, 41%

Hue: 304° / Saturation: 67% / Lightness: 41%

CMYK

0%, 80%, 6%, 31%

Cyan: 0% / Magenta: 80% / Yellow: 6% / Key: 31%

What color is #AF23A5?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #AF23A5 to RGB:

rgb(175, 35, 165)HEX to RGB Converter →

HEX to HSL

Convert #AF23A5 to HSL:

hsl(304, 67%, 41%)RGB to HSL Converter →

HEX to CMYK

Convert #AF23A5 to CMYK:

cmyk(0%, 80%, 6%, 31%)Color Converter →

Color Meaning and Usage

#AF23A5 is a understated magenta color with RGB values of 175, 35, 165 and HSL of 304°, 67%, 41%. This magenta-red hue evokes romance and playfulness, making it suitable for often used for branding and logos. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #AF23A5 is #23AF2C, creating high-contrast pairings. For softer combinations, try analogous colors like #7223AF.

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

Contrast with #AF23A5

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

Contrast Ratio: 3.61:1
WCAG AA: Fail
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #AF23A5?

#AF23A5 is a understated magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #AF23A5?

#AF23A5 in RGB is (175, 35, 165) - 175 red, 35 green, and 165 blue.

How to use #AF23A5 in CSS?

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

What colors go well with #AF23A5?

#23AF2C (complementary), #7223AF (analogous), and #6F1669 (lighter shade) work well with #AF23A5.