Skip to content

Violet

Violet is a light, rich color from the purple family. Hex code #EE82EE.

Violet#EE82EE

Color codes

  • CSS nameviolet
  • HEX#EE82EE
  • RGBrgb(238 130 238)
  • HSLhsl(300 76% 72%)
  • HSB / HSVhsb(300, 45%, 93%)
  • OKLCHoklch(76.2% 0.186 327.2)
  • CMYKcmyk(0%, 45%, 0%, 7%)

White text

2.31:1 · fails WCAG

Black text

9.06:1 · passes WCAG AAA

Shades

50#FEEBFD
100#FCBBFA
200#F589F5
300#D76CD7
400#B950BA
500#9C339E
600#7F1082
700#5C055E
800#3B033C

Complementary

#EE82EE
#4CD067

Analogous

#EE82EE
#BB9EFD
#FC86B3

Triadic

#EE82EE
#DAAA1A
#2EC7D9

About this color

Violet in CSS and design

Violet is a light, rich color from the purple family. Violet is one of the extended color keywords, which CSS adopted from the X11 color names used on Unix workstations.

Use it in CSS by name or by any of its codes; these all give the same color:

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

For text on violet, black reads best. Check other combinations with the contrast checker, or browse all CSS color names.

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), in HSL hsl(300 76% 72%). For print, cmyk(0%, 45%, 0%, 7%) is a starting point, but CMYK depends on paper and ink, so check with your printer.

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.

Which colors go with violet?

Its complementary color is #4CD067, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #BB9EFD and #FC86B3. The palette generator builds more combinations.