#540E9A Color

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

Color preview

#540E9A

Color formats

HEX
#540E9A
RGB
rgb(84, 14, 154)
RGBA
rgba(84, 14, 154, 1)
HSL
hsl(270, 83%, 33%)
HSV
hsv(270, 91%, 60%)
CMYK
cmyk(45%, 91%, 0%, 40%)
CSS variable
--color-primary: #540E9A;
Lowercase HEX
#540e9a

Shades

Tints

Tones

Harmony

CSS snippets for #540E9A

.color-540e9a {
  color: #540E9A;
  background-color: #540E9A;
}

Frequently asked questions

What color is #540E9A?+

#540E9A is a HEX color with RGB value rgb(84, 14, 154) and HSL value hsl(270, 83%, 33%). Its closest CSS named color is Indigo.

What is the closest Tailwind color to #540E9A?+

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