#540D9B Color

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

Color preview

#540D9B

Color formats

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

Shades

Tints

Tones

Harmony

CSS snippets for #540D9B

.color-540d9b {
  color: #540D9B;
  background-color: #540D9B;
}

Frequently asked questions

What color is #540D9B?+

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

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

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