#9872B1 Color

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

Color preview

#9872B1

Color formats

HEX
#9872B1
RGB
rgb(152, 114, 177)
RGBA
rgba(152, 114, 177, 1)
HSL
hsl(276, 29%, 57%)
HSV
hsv(276, 36%, 69%)
CMYK
cmyk(14%, 36%, 0%, 31%)
CSS variable
--color-primary: #9872B1;
Lowercase HEX
#9872b1

Shades

Tints

Tones

Harmony

CSS snippets for #9872B1

.color-9872b1 {
  color: #9872B1;
  background-color: #9872B1;
}

Frequently asked questions

What color is #9872B1?+

#9872B1 is a HEX color with RGB value rgb(152, 114, 177) and HSL value hsl(276, 29%, 57%). Its closest CSS named color is MediumPurple.

What is the closest Tailwind color to #9872B1?+

The closest Tailwind color is zinc-400, available as the bg-zinc-400 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