Violet
#8000FFThe violet hex code is #8000FF, and its RGB value is 128, 0, 255.
Violet is a bluish purple named after the violet flower, and it's the shortest wavelength of light people can see. We use #8000FF, the reference value, which is far stronger than CSS violet, a pale #EE82EE. White text passes AA on it at 6.3:1.
Violet color codes
Shades of violet
Ten lighter and ten darker shades of violet, with violet in the middle. Click a shade to copy its hex code.
Readability
- Passes AA normal
- Passes AA large
- Passes AAA large
- Fails AAA normal
- Passes AA large
- Fails AA normal
- Fails AAA normal
- Fails AAA large
Colors that go with violet
Complementary
The opposite on the color wheelAnalogous
Its two neighborsTriadic
Three evenly spaced colorsSplit-complementary
The two colors beside its oppositeViolet color palettes
Monochrome
Lighter and darker versions of the same color.Analogous
Neighbors on the color wheel, for a calm, related look.Complementary
The color with its opposite, for strong contrast.Triadic
Three colors evenly spaced around the wheel, with a light and dark version.Violet background
Plain and gradient violet backgrounds for phone and desktop wallpapers, slides and mockups, free to download.
Similar colors
Questions about violet
What is the hex code for violet?
The hex code for violet is #8000FF. In RGB it's rgb(128, 0, 255), and in HSL it's hsl(270, 100%, 50%).
What is the RGB value of violet?
Violet is rgb(128, 0, 255) in RGB: 128 red, 0 green and 255 blue on a 0-255 scale.
What colors go with violet?
Its complementary color is #7FFF00. For a calmer look, try the analogous colors #0000FF and #FF00FF, or one of the palettes above, which all include violet.
Is text readable on violet?
White text is the better choice, with a contrast ratio of 6.25:1. That passes WCAG AA for normal text.