Violet Color

HEX #EE82EE · rgb(238, 130, 238) · hsl(300, 76%, 72%)

Violet color codes

Violet is one of the named colors every browser understands. In CSS you can write it as violet or #EE82EE.

FormatValue
HEX#EE82EE
RGBrgb(238, 130, 238)
HSLhsl(300, 76%, 72%)
CMYK0%, 45%, 0%, 7%
CSS nameviolet
.example {
  color: violet;
  background-color: #EE82EE;
  border-color: rgb(238, 130, 238);
}

Colors that go with violet

These harmonies keep the same saturation and lightness and rotate the hue around the color wheel.

#82EE82Complementary
#B882EEAnalogous
#EE82B8Analogous
#EEEE82Triadic
#82EEEETriadic

Tints and shades of violet

Tints mix the color with white; shades mix it with black.

#FDF3FD90% white
#FBE0FB75% white
#F8CDF860% white
#F6BAF645% white
#F3A8F330% white
#F195F115% white
#EE82EEBase
Violet
#CA6FCA15% black
#A75BA730% black
#83488345% black
#5F345F60% black
#3C213C75% black
#180D1890% black

Contrast and readability

Black text
9.06:1
passes AA and AAA
White text
2.32:1
fails

Use black text on violet. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.

Frequently asked questions

What is the hex code for violet?

The hex code for violet is #EE82EE.

What is the RGB value of violet?

Violet is rgb(238, 130, 238): 238 red, 130 green and 238 blue on a 0 to 255 scale.

What color goes with violet?

Its complementary color is #82EE82, which is closest to the named color light green. Analogous and triadic matches are listed on this page.

Should text on violet be black or white?

Use black text. The contrast ratio is 9.06:1 with black and 2.32:1 with white. WCAG AA asks for at least 4.5:1 for normal text.

Similar named colors

Pick any other color with the color picker, or browse all named colors.