Violet Color Palette
Violet Color Palette built around #8F00FF, a dark cool purple anchor (WCAG contrast 3.61:1 against black). The set combines a light tint + a deep shade + a softened complement + a neutral ground so any palette position has a text-safe pairing.
Semantic roles
Assigned deterministically: lightest = background, darkest = text, most saturated = primary.
| background | #E7ADFF | |
| surface | #77C639 | |
| text | #4F009D | |
| text-muted | #8F00FF | |
| primary | #8F00FF | |
| secondary | #77C639 | |
| accent | #9F35FF |
CSS variables
:root {
--background: #e7adff;
--surface: #77c639;
--text: #4f009d;
--text-muted: #8f00ff;
--primary: #8f00ff;
--secondary: #77c639;
--accent: #9f35ff;
}Accessibility matrix
Text color (rows) on background (columns). Green = WCAG AA pass for normal text (≥4.5:1).
| Text \ BG | #8F00FF | #E7ADFF | #4F009D | #77C639 | #9F35FF |
|---|---|---|---|---|---|
| #8F00FF | 1.0 | 3.3 | 2.0 | 2.8 | 1.2 |
| #E7ADFF | 3.3 | 1.0 | 6.5 | 1.2 | 2.7 |
| #4F009D | 2.0 | 6.5 | 1.0 | 5.5 | 2.4 |
| #77C639 | 2.8 | 1.2 | 5.5 | 1.0 | 2.2 |
| #9F35FF | 1.2 | 2.7 | 2.4 | 2.2 | 1.0 |
Under deuteranopia
Machado et al. (2009) simulation, severity 1.0 — approximation, not a medical tool.
Colors in this palette
Similar palettes
FAQ
How do I use the violet color palette in CSS?
Copy the CSS variables below into :root and use var(--primary), var(--background) etc. Full palette: #8F00FF, #E7ADFF, #4F009D, #77C639, #9F35FF.
Do these colors pass accessibility checks?
See the WCAG matrix on this page: every text-on-background pairing with ratio ≥ 4.5 passes AA for normal text; ≥ 3 passes AA for large text and UI components.