#540D9C Color

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

Color preview

#540D9C

Color formats

HEX
#540D9C
RGB
rgb(84, 13, 156)
RGBA
rgba(84, 13, 156, 1)
HSL
hsl(270, 85%, 33%)
HSV
hsv(270, 92%, 61%)
CMYK
cmyk(46%, 92%, 0%, 39%)
CSS variable
--color-primary: #540D9C;
Lowercase HEX
#540d9c

Shades

Tints

Tones

Harmony

CSS snippets for #540D9C

.color-540d9c {
  color: #540D9C;
  background-color: #540D9C;
}

Frequently asked questions

What color is #540D9C?+

#540D9C is a HEX color with RGB value rgb(84, 13, 156) and HSL value hsl(270, 85%, 33%). Its closest CSS named color is Indigo.

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

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