#512B9D Color

Inspect #512B9D across formats, palettes, contrast and closest named color matches.

Color preview

#512B9D

Color formats

HEX
#512B9D
RGB
rgb(81, 43, 157)
RGBA
rgba(81, 43, 157, 1)
HSL
hsl(260, 57%, 39%)
HSV
hsv(260, 73%, 62%)
CMYK
cmyk(48%, 73%, 0%, 38%)
CSS variable
--color-primary: #512B9D;
Lowercase HEX
#512b9d

Shades

Tints

Tones

Harmony

CSS snippets for #512B9D

.color-512b9d {
  color: #512B9D;
  background-color: #512B9D;
}

Frequently asked questions

What color is #512B9D?+

#512B9D is a HEX color with RGB value rgb(81, 43, 157) and HSL value hsl(260, 57%, 39%). Its closest CSS named color is RebeccaPurple.

What is the closest Tailwind color to #512B9D?+

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