#540F9F Color

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

Color preview

#540F9F

Color formats

HEX
#540F9F
RGB
rgb(84, 15, 159)
RGBA
rgba(84, 15, 159, 1)
HSL
hsl(269, 83%, 34%)
HSV
hsv(269, 91%, 62%)
CMYK
cmyk(47%, 91%, 0%, 38%)
CSS variable
--color-primary: #540F9F;
Lowercase HEX
#540f9f

Shades

Tints

Tones

Harmony

CSS snippets for #540F9F

.color-540f9f {
  color: #540F9F;
  background-color: #540F9F;
}

Frequently asked questions

What color is #540F9F?+

#540F9F is a HEX color with RGB value rgb(84, 15, 159) and HSL value hsl(269, 83%, 34%). Its closest CSS named color is Indigo.

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

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