Violet Color Code (#ee82ee)

Violet is #ee82ee in hex and rgb(238, 130, 238) — a light magenta. Below: every color format, tints and shades, harmonies and how readable it is as text.

Updated

Violet
#ee82ee
CSS nameviolet
Hex#ee82ee
RGBrgb(238, 130, 238)
HSLhsl(300 76% 72%)
HWBhwb(300 51% 7%)
CMYK0%, 45%, 0%, 7%

Tints and shades

Color harmonies

About Violet

Violet (violet) is a light, vivid magenta with the hex code #ee82ee, or rgb(238, 130, 238). In HSL it sits at a hue of 300°, 76% saturation and 72% lightness. It is one of the 148 named colors every browser understands, so you can write color: violet; instead of the hex value.

Using Violet for text and backgrounds

PairingContrast ratioWCAG
Violet text on white2.32 : 1fails
Violet text on black9.06 : 1AAA

On a violet background, use black text (9.06 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.

CSS

.element {
  color: violet;               /* or #ee82ee */
  background-color: #ee82ee;
  border: 1px solid rgb(238 130 238 / 50%);
}

Similar named colors

Orchid (#da70d6), Plum (#dda0dd), Hot Pink (#ff69b4), Thistle (#d8bfd8), Light Pink (#ffb6c1), Pink (#ffc0cb).

Color Name FinderPaste a HEX code to get its closest human-readable name and clean token names for your CSS, SCSS, JavaScript or Tailwind config.
Open the tool

Frequently asked questions

What is the hex code for violet?
#ee82ee — that is rgb(238, 130, 238) and hsl(300, 76%, 72%). In CSS you can also just write violet.
Is violet text readable on white?
Its contrast ratio on white is 2.32 : 1, which fails WCAG — use it for decoration or on a dark background instead.
What colors go well with violet?
Its complementary color is #81ee81; analogous colors #b881ee and #ee81b8 sit next to it on the color wheel.