Violet Color Palette
Violet is hex #8F00FF, rgb(143, 0, 255). Violet is the shortest visible wavelength of light and the purest purple. The CSS-style hex #8F00FF is fully saturated and very electric on screen.
By Mohamed Farhan · Updated Oct 19, 2026
Violet color codes
Reading the violet color codes
The hex code #8F00FF is three pairs of base-16 numbers for red, green and blue. 8F is 143, 00 is 0 and FF is 255, each on a scale from 0 to 255. That is why the same color is written rgb(143, 0, 255) in CSS. The blue channel is the strongest here, which is what gives violet its violet character.
HSL describes the same color the way people think about it. A hue of 274 degrees places violet in the violet part of the color wheel. Saturation of 100% makes it vivid, and lightness of 50% makes it a mid-tone color. HSL is the easiest format to adjust by hand: keep the hue, then raise or lower lightness to create tints and shades that stay in the same family.
For print, the approximate CMYK mix is 44% cyan, 100% magenta, 0% yellow and 0% black. Screen and print colors never match perfectly, because monitors emit light while ink absorbs it, so always proof a printed sample before committing to violet for packaging or stationery. See MDN's guide to CSS color values for every format browsers accept.
Violet shades and tints
A full 50 to 950 scale built around #8F00FF, so you can use violet for backgrounds, borders, buttons and text without leaving the family. Click any shade to copy it.
// tailwind.config.js
theme: {
extend: {
colors: {
"violet": {
50: "#E9CCFF",
100: "#D7A3FF",
200: "#C57AFF",
300: "#B352FF",
400: "#A129FF",
500: "#8F00FF",
600: "#7C00DD",
700: "#6800BA",
800: "#550098",
900: "#420076",
950: "#2E0053",
},
},
},
}:root {
--violet-50: #E9CCFF;
--violet-100: #D7A3FF;
--violet-200: #C57AFF;
--violet-300: #B352FF;
--violet-400: #A129FF;
--violet-500: #8F00FF;
--violet-600: #7C00DD;
--violet-700: #6800BA;
--violet-800: #550098;
--violet-900: #420076;
--violet-950: #2E0053;
}A shade-by-shade guide to violet
The 50 to 950 scale above follows the same structure as Tailwind's built-in palettes, so each step has a natural job. The lightest steps, 50 (#E9CCFF) and 100 (#D7A3FF), are page and card backgrounds: they carry the violet mood without competing with content. Steps 200 (#C57AFF) and 300 (#B352FF) suit borders, dividers, hover states and selected rows.
The middle of the scale, 400 to 600, is where violet is most recognizable, so use it for brand moments, illustrations and primary buttons. White text reaches the 4.5:1 body-text contrast minimum from step 400 upward, so use step 400 or darker when a button label needs to be white. Near-black text stays readable on steps 50 to 300.
The darkest steps, 800 (#550098) through 950 (#2E0053), make headings, body text and dark-mode surfaces that stay clearly related to violet. Using step 900 or 950 for text instead of pure black is one of the simplest ways to make an interface feel designed rather than default.
Colors that go with violet
How the violet color combinations work
Complementary. Directly across the color wheel from violet is #70FF00, which sits closest to chartreuse among common named colors. Complementary pairs create the strongest contrast of hue, so use the second color sparingly, for a single call to action or highlight, rather than in equal amounts.
Analogous. #0F00FF and #FF00F0 sit 30 degrees either side of violet. Analogous palettes feel calm and cohesive because the colors share undertones; they are ideal for illustrations, gradients and backgrounds where you want harmony more than contrast.
Triadic and split complementary. The triadic set (#FF8F00 and #00FF8F) is evenly spaced around the wheel and feels playful; the second color is closest to goldenrod. The split complementary set (#F0FF00 and #00FF0F) keeps much of the complementary contrast but is easier to balance, which makes it a good choice for data visualization and multi-category tags.
Monochromatic. The monochromatic set runs from #D299FF to #3F0070. A single-hue palette is the safest way to build a calm, premium interface: rely on lightness for hierarchy, then add one neutral and one accent if you need emphasis.
Violet compared with similar colors
magenta (#FF00FF) is about as light and similarly saturated, and leans further around the wheel toward magenta. Choose magenta if you need more weight and contrast; choose violet if you want its specific balance of brightness and color.
royal blue (#4169E1) is lighter (57% vs 50% lightness) and more muted, and leans back the wheel toward blue. Choose royal blue if you want a softer, airier version; choose violet if you want its specific balance of brightness and color.
plum (#8E4585) is darker (41% vs 50% lightness) and more muted, and leans further around the wheel toward magenta. Choose plum if you need more weight and contrast; choose violet if you want its specific balance of brightness and color.
Violet in a real interface
Swatches only tell half the story. Here violet carries the primary action, with tints from its own scale for the surface and panels.
Weekly summary
Revenue grew 12% this week. Three invoices are waiting for approval.
Using violet in UI: buttons, text, backgrounds and dark mode
- Buttons. Violet carries white labels at 5.81:1, which passes AA for normal text.
- Text. Violet works as text on white backgrounds.
- Backgrounds. Use steps 50 and 100 for large areas and keep the base color for smaller surfaces. Big blocks of a vivid mid-tone color draw attention, so give them a reason, like a hero section or pricing highlight.
- Dark mode. Steps 900 and 950 make a dark surface tinted with violet. On dark backgrounds the base color often needs a lighter step (300 or 400) to keep enough contrast for icons and borders, as required by WCAG non-text contrast.
- States. Shift one step darker for hover and two steps darker for pressed. Keep focus rings in a contrasting color so keyboard users can always see them.
Contrast and accessibility
AA needs 4.5:1 for body text and 3:1 for large text. AAA needs 7:1.
Color contrast is measured as a ratio from 1:1 (no contrast) to 21:1 (black on white). Violet scores 5.81:1 against white (AA) and 3.61:1 against black (AA large). The WCAG 2.1 contrast guideline asks for at least 4.5:1 for normal text and 3:1 for large text, which is why the shade guide above recommends specific steps for text and labels.
Contrast is only half of accessibility. Around 1 in 12 men and 1 in 200 women have some form of color vision deficiency, so never use violet alone to signal meaning such as success, error or selection. Pair it with an icon, a label or a change in weight.
What violet means
Purple carries creativity, imagination and a touch of luxury. Light purples feel soft and calming; deep purples feel rich and mysterious.
Violet is named after the violet flower and is the shortest wavelength of visible light. Fully saturated violet is rare in nature and has long been associated with creativity, spirituality and the unusual.
Purple is heavily used by AI and creative tools, so it can look generic. Desaturate it or pair it with warm neutrals to make it feel chosen rather than default.
Where violet works best
- Creative tools
- Music and nightlife
- Gaming
- Single accent in dark UIs
How to style violet
Violet pairs with near-black, coral and soft lilac. It is very intense on screen; use it as a single accent in dark interfaces and choose a deeper or lighter shade for text and backgrounds.
Build a UI with violet
Inspo AI generates a full React + Tailwind screen using #8F00FF as the brand color, grounded in real shipped designs.
Sources and further reading
- Wikipedia: Violet · History and definition of violet.
- WCAG 2.1: Contrast (Minimum) · The W3C rule behind the 4.5:1 and 3:1 thresholds used on this page.
- WCAG 2.1: Use of Color · Why color should never be the only way information is shown.
- MDN: CSS color values · Reference for hex, rgb() and hsl() syntax.
- Tailwind CSS: Customizing colors · How to add a custom color scale to your theme.
Similar colors
Questions people ask
What is the hex code for violet?
The hex code for violet used on this page is #8F00FF. In RGB that is rgb(143, 0, 255), and in HSL it is hsl(274, 100%, 50%).
What colors go well with violet?
Violet pairs well with #16001E, #F4EBFF, #FF6B6B (the Spectrum palette above). Its complementary color is #70FF00, and analogous colors are #0F00FF and #FF00F0.
Is violet a warm or cool color?
Violet is a cool color. Its hue sits at 274 degrees on the color wheel with 100% saturation.
Can I use violet for text?
Violet has a contrast ratio of 5.81:1 against white and 3.61:1 against black. Body text needs at least 4.5:1, so it works as text on white backgrounds.
What does violet mean?
Purple carries creativity, imagination and a touch of luxury. Light purples feel soft and calming; deep purples feel rich and mysterious. Violet in particular is used for creative tools and music and nightlife.
How do I use violet in Tailwind CSS?
Use an arbitrary value like bg-[#8F00FF] for a one-off, or add the 50-950 scale from this page to theme.extend.colors in tailwind.config.js and use classes like bg-violet-500 and text-violet-900.

↘ Building Inspo AI | AI-Powered Design Research & Builder Platform | Design Engineer.