#AF3791 Color Information

Hex color code: #AF3791

A subtle magenta shade, #AF3791 appears as (175, 55, 145) in RGB and (315°, 52%, 45%) in HSL. It is often used for branding and logos.

Try:
Color NameViolet Red
HEX
#AF3791
RGB
175, 55, 145
HSL
315°, 52%, 45%
CMYK
0%, 69%, 17%, 31%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #AF3791; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

175, 55, 145

Red: 175 / Green: 55 / Blue: 145

HSL

315°, 52%, 45%

Hue: 315° / Saturation: 52% / Lightness: 45%

CMYK

0%, 69%, 17%, 31%

Cyan: 0% / Magenta: 69% / Yellow: 17% / Key: 31%

What color is #AF3791?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #AF3791 to RGB:

rgb(175, 55, 145)HEX to RGB Converter →

HEX to HSL

Convert #AF3791 to HSL:

hsl(315, 52%, 45%)RGB to HSL Converter →

HEX to CMYK

Convert #AF3791 to CMYK:

cmyk(0%, 69%, 17%, 31%)Color Converter →

Color Meaning and Usage

#AF3791 is a understated magenta color with RGB values of 175, 55, 145 and HSL of 315°, 52%, 45%. 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 #AF3791 is #37AE55, creating high-contrast pairings. For softer combinations, try analogous colors like #9137AE.

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

Contrast with #AF3791

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #AF3791?

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

What is the RGB value of #AF3791?

#AF3791 in RGB is (175, 55, 145) - 175 red, 55 green, and 145 blue.

How to use #AF3791 in CSS?

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

What colors go well with #AF3791?

#37AE55 (complementary), #9137AE (analogous), and #742560 (lighter shade) work well with #AF3791.