#940CBA Color

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

Color preview

#940CBA

Color formats

HEX
#940CBA
RGB
rgb(148, 12, 186)
RGBA
rgba(148, 12, 186, 1)
HSL
hsl(287, 88%, 39%)
HSV
hsv(287, 94%, 73%)
CMYK
cmyk(20%, 94%, 0%, 27%)
CSS variable
--color-primary: #940CBA;
Lowercase HEX
#940cba

Shades

Tints

Tones

Harmony

CSS snippets for #940CBA

.color-940cba {
  color: #940CBA;
  background-color: #940CBA;
}

Frequently asked questions

What color is #940CBA?+

#940CBA is a HEX color with RGB value rgb(148, 12, 186) and HSL value hsl(287, 88%, 39%). Its closest CSS named color is DarkViolet.

What is the closest Tailwind color to #940CBA?+

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