#840CED Color

Inspect #840CED across formats, palettes, contrast and closest named color matches.

Color preview

#840CED

Color formats

HEX
#840CED
RGB
rgb(132, 12, 237)
RGBA
rgba(132, 12, 237, 1)
HSL
hsl(272, 90%, 49%)
HSV
hsv(272, 95%, 93%)
CMYK
cmyk(44%, 95%, 0%, 7%)
CSS variable
--color-primary: #840CED;
Lowercase HEX
#840ced

Shades

Tints

Tones

Harmony

CSS snippets for #840CED

.color-840ced {
  color: #840CED;
  background-color: #840CED;
}

Frequently asked questions

What color is #840CED?+

#840CED is a HEX color with RGB value rgb(132, 12, 237) and HSL value hsl(272, 90%, 49%). Its closest CSS named color is DarkViolet.

What is the closest Tailwind color to #840CED?+

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