White text passes AA
6.25:1

Violet

#8000FF
PNG

The 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

HEX#8000FF
RGBrgb(128, 0, 255)
HSLhsl(270, 100%, 50%)
OKLCHoklch(53% 0.293 293.9)
CMYKcmyk(50%, 100%, 0%, 0%)
CMYK is an approximate screen conversion, not for print matching.

Shades of violet

Ten lighter and ten darker shades of violet, with violet in the middle. Click a shade to copy its hex code.

LightestViolet #8000FFDarkest

Readability

White text on violetNormal text at 16px. The quick brown fox jumps over the lazy dog.
6.25:1
  • Passes AA normal
  • Passes AA large
  • Passes AAA large
  • Fails AAA normal
Dark text on violetNormal text at 16px. The quick brown fox jumps over the lazy dog.
3.36:1
  • Passes AA large
  • Fails AA normal
  • Fails AAA normal
  • Fails AAA large

Colors that go with violet

#8000FF#7FFF00

Complementary

The opposite on the color wheel
#0000FF#8000FF#FF00FF

Analogous

Its two neighbors
#8000FF#FF8000#00FF80

Triadic

Three evenly spaced colors
#8000FF#FEFF00#00FF00

Split-complementary

The two colors beside its opposite

Violet 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.

Solid violet background

Violet gradient background

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.