#AF31A2 Color

Inspect #AF31A2 across formats, palettes, contrast and closest named color matches.

Color preview

#AF31A2

Color formats

HEX
#AF31A2
RGB
rgb(175, 49, 162)
RGBA
rgba(175, 49, 162, 1)
HSL
hsl(306, 56%, 44%)
HSV
hsv(306, 72%, 69%)
CMYK
cmyk(0%, 72%, 7%, 31%)
CSS variable
--color-primary: #AF31A2;
Lowercase HEX
#af31a2

Shades

Tints

Tones

Harmony

CSS snippets for #AF31A2

.color-af31a2 {
  color: #AF31A2;
  background-color: #AF31A2;
}

Frequently asked questions

What color is #AF31A2?+

#AF31A2 is a HEX color with RGB value rgb(175, 49, 162) and HSL value hsl(306, 56%, 44%). Its closest CSS named color is MediumVioletRed.

What is the closest Tailwind color to #AF31A2?+

The closest Tailwind color is fuchsia-700, available as the bg-fuchsia-700 utility class.

Can I use this color in CSS?+

Yes. You can use the HEX, RGB, HSL or CSS variable output directly in CSS.

Related tools