PreviewingGo to this paletteOpen in generator
Code
/* Blue Spectrum — colorset.net */
:root {
--color-1: #4080FF;
--color-2: #FF4080;
--color-3: #80FF40;
--color-4: #8040FF;
--color-5: #FF8000;
--color-bg: #F1FAED;
--color-surface: #E7F1E4;
--color-border: #CDD9C9;
--color-text: #50457C;
--color-muted: #6B6781;
--color-primary: #8040FF;
--color-on-primary: #FFFFFF;
--color-accent: #388700;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #100C1D;
--color-surface: #191628;
--color-border: #2E2A40;
--color-text: #CCE4C4;
--color-muted: #75866F;
--color-primary: #8040FF;
--color-on-primary: #FFFFFF;
--color-accent: #80FF40;
--color-on-accent: #100C1D;
}
}
Color values
| Color | HEX | RGB | HSL | OKLCH |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 |
Roles & contrast
Original colors are kept; roles are adjusted only when needed for contrast.
| Role | Light mode | Dark mode |
|---|---|---|
| Background | adjusted for contrast · from #80FF40 | adjusted for contrast · from #8040FF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8040FF | adjusted for contrast · from #80FF40 |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FF8000 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.91:1 | AAA pass 4.5:1 | |
| Text on surface | 7.29:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 5.13:1 | AA pass 4.5:1 | |
| Label on accent | 4.53:1 | AA pass 4.5:1 | |
| Primary on background | 4.80:1 | AA pass 3:1 | |
| Accent on background | 4.24:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.15:1 | AAA pass 4.5:1 | |
| Text on surface | 13.03:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 5.13:1 | AA pass 4.5:1 | |
| Label on accent | 14.92:1 | AAA pass 4.5:1 | |
| Primary on background | 3.75:1 | AA Large pass 3:1 | |
| Accent on background | 14.92:1 | AAA pass 3:1 |
Every color on every color
Rows are backgrounds and columns are text colors, using the actual palette colors. Ratios: AAA 7:1, AA 4.5:1, AA large text 3:1.
| Background / Text | #4080FF (Text 1) | #FF4080 (Text 2) | #80FF40 (Text 3) | #8040FF (Text 4) | #FF8000 (Text 5) |
|---|---|---|---|---|---|
| #4080FF | Same color | 1.10— | 2.83— | 1.40— | 1.45— |
| #FF4080 | 1.10— | Same color | 2.59— | 1.54— | 1.32— |
| #80FF40 | 2.83— | 2.59— | Same color | 3.98AA Large | 1.95— |
| #8040FF | 1.40— | 1.54— | 3.98AA Large | Same color | 2.04— |
| #FF8000 | 1.45— | 1.32— | 1.95— | 2.04— | Same color |
Shades
Shades and tints (50–950)
