Violet color: hex codes, shades and palettes
Palettes built around violet. Click any swatch to copy its hex code.
Violet is #7F00FF — vivid violet. Below are its shades with hex codes, the values in every common format, and violet color palettes to copy.
No violet palettes yet
Run npm run generate to build the dataset.
Violet hex, RGB, HSL and OKLCH
- HEX
#7F00FF- RGB
rgb(127, 0, 255)- HSL
hsl(270, 100%, 50%)- OKLCH
oklch(52.9% 0.293 293.6)- On white
- 6.28:1
- On black
- 3.35:1
Shades of violet
Eleven steps from one base color, generated in OKLCH so each step is an equal perceived step rather than an equal numeric one. Click a swatch to copy it.
Contrast and readability
Violet on white measures 6.28:1 and on black 3.35:1. WCAG AA asks for 4.5:1 on normal text and 3:1 on large text and UI components, so the higher of those two decides which background it belongs on. In the scale above, 500 is the first to clear 4.5:1 on white, at 6.16:1.
The contrast checker reports every level for a given pair and suggests the nearest passing shade on the same hue. The color picker builds this same scale from any color you paste in.
Related colors:purple, lavender, lilac, plum, indigo, eggplant. See every shade on the colors index.