#540AF5 Color

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

Color preview

#540AF5

Color formats

HEX
#540AF5
RGB
rgb(84, 10, 245)
RGBA
rgba(84, 10, 245, 1)
HSL
hsl(259, 92%, 50%)
HSV
hsv(259, 96%, 96%)
CMYK
cmyk(66%, 96%, 0%, 4%)
CSS variable
--color-primary: #540AF5;
Lowercase HEX
#540af5

Shades

Tints

Tones

Harmony

CSS snippets for #540AF5

.color-540af5 {
  color: #540AF5;
  background-color: #540AF5;
}

Frequently asked questions

What color is #540AF5?+

#540AF5 is a HEX color with RGB value rgb(84, 10, 245) and HSL value hsl(259, 92%, 50%). Its closest CSS named color is BlueViolet.

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

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