#AF23A8 Color Information

Hex color code: #AF23A8

The hex color #AF23A8 is a understated magenta with RGB values of (175, 35, 168) and HSL of (303°, 67%, 41%). It is widely used in graphic design.

Try:
Color NameViolet Red
HEX
#AF23A8
RGB
175, 35, 168
HSL
303°, 67%, 41%
CMYK
0%, 80%, 4%, 31%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #AF23A8; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

175, 35, 168

Red: 175 / Green: 35 / Blue: 168

HSL

303°, 67%, 41%

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

CMYK

0%, 80%, 4%, 31%

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

What color is #AF23A8?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #AF23A8 to RGB:

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

HEX to HSL

Convert #AF23A8 to HSL:

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

HEX to CMYK

Convert #AF23A8 to CMYK:

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

Color Meaning and Usage

#AF23A8 is a muted magenta color with RGB values of 175, 35, 168 and HSL of 303°, 67%, 41%. This magenta-red hue evokes romance and playfulness, making it suitable for frequently seen in web interfaces. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #AF23A8 is #23AF2A, creating high-contrast pairings. For softer combinations, try analogous colors like #7023AF.

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

Contrast with #AF23A8

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #AF23A8?

#AF23A8 is a muted magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #AF23A8?

#AF23A8 in RGB is (175, 35, 168) - 175 red, 35 green, and 168 blue.

How to use #AF23A8 in CSS?

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

What colors go well with #AF23A8?

#23AF2A (complementary), #7023AF (analogous), and #6F166A (lighter shade) work well with #AF23A8.