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.
| Format | Value | |
|---|---|---|
| HEX | #EE82EE | |
| RGB | rgb(238, 130, 238) | |
| HSL | hsl(300, 76%, 72%) | |
| CMYK | 0%, 45%, 0%, 7% | |
| CSS name | violet |
.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.
Tints and shades of violet
Tints mix the color with white; shades mix it with black.
Violet
Contrast and readability
9.06:1
passes AA and AAA
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.