#987AFA Color

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

Color preview

#987AFA

Color formats

HEX
#987AFA
RGB
rgb(152, 122, 250)
RGBA
rgba(152, 122, 250, 1)
HSL
hsl(254, 93%, 73%)
HSV
hsv(254, 51%, 98%)
CMYK
cmyk(39%, 51%, 0%, 2%)
CSS variable
--color-primary: #987AFA;
Lowercase HEX
#987afa

Shades

Tints

Tones

Harmony

CSS snippets for #987AFA

.color-987afa {
  color: #987AFA;
  background-color: #987AFA;
}

Frequently asked questions

What color is #987AFA?+

#987AFA is a HEX color with RGB value rgb(152, 122, 250) and HSL value hsl(254, 93%, 73%). Its closest CSS named color is MediumPurple.

What is the closest Tailwind color to #987AFA?+

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