Skip to content

Violet

Violet is a light, rich color. Hex code #EE82EE.

Violet#EE82EE

Violet color codes

  • CSS nameviolet
  • HEX#EE82EE
  • RGBrgb(238, 130, 238)
  • HSLhsl(300, 76%, 72%)
  • OKLCHoklch(76.2% 0.186 327.2)
HSB and CMYK values
  • HSB / HSVhsb(300, 45%, 93%)
  • CMYKC0 M45 Y0 K7

White text

2.31:1 · fails WCAG

Black text

9.06:1 · passes WCAG AAA

Shades of violet

A darker shade of violet is #B950BA (400), and a lighter one is #FCBBFA (100).

Colors that go with violet

Complementary

Analogous

Triadic

The complementary color of violet is #82EE82, close to light green.

Click a color to copy its hex code.

Colors similar to violet

Each compared with violet.

About this color

Violet in CSS and design

Violet is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same violet:

color: violet;
color: #EE82EE;
color: rgb(238, 130, 238);
color: hsl(300, 76%, 72%);

What to know about violet

Violet is named after the flower. Merriam-Webster describes the color as reddish blue of low lightness, but CSS violet (#EE82EE) is light and pinkish: its hue is 300°, the same as magenta, plum and thistle. For a deep violet, dark violet (#9400D3) and blue violet (#8A2BE2) are the named choices.

Frequently asked questions

What is the hex code for violet?

#EE82EE. In CSS you can also use the keyword violet, which works in every browser.

What is violet in RGB and HSL?

In RGB it is rgb(238, 130, 238) and in HSL hsl(300, 76%, 72%). In CMYK it is about C0 M45 Y0 K7, though printed colors vary with paper and ink.

Should I use black or white text on violet?

Black text works better: it has a contrast ratio of 9.06:1 and passes WCAG AAA. White text reaches 2.31:1.

What is the complementary color of violet?

#82EE82, close to light green. It sits opposite violet on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.

Which colors go with violet?

For strong contrast, pair it with its complementary color #82EE82. For a calmer look, combine it with its analogous neighbors #B882EE and #EE82B8. The palette generator builds more combinations.