PreviewingGo to this paletteOpen in generator
Code
/* Primary Colors — colorset.net */
:root {
--color-1: #FF0000;
--color-2: #00FF00;
--color-3: #0000FF;
--color-4: #FFFF00;
--color-5: #FF00FF;
--color-bg: #F7F8E9;
--color-surface: #EEEFE0;
--color-border: #D5D7C4;
--color-text: #344C7F;
--color-muted: #5E6A82;
--color-primary: #F100F1;
--color-on-primary: #000000;
--color-accent: #008900;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #080F1F;
--color-surface: #11192A;
--color-border: #242E42;
--color-text: #F6F8D2;
--color-muted: #8B8C71;
--color-primary: #FF00FF;
--color-on-primary: #080F1F;
--color-accent: #00FF00;
--color-on-accent: #080F1F;
}
}
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 #FFFF00 | adjusted for contrast · from #0000FF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #0000FF | adjusted for contrast · from #FFFF00 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FF00FF | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #00FF00 | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.87:1 | AAA pass 4.5:1 | |
| Text on surface | 7.26:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 6.01:1 | AA pass 4.5:1 | |
| Label on accent | 4.59:1 | AA pass 4.5:1 | |
| Primary on background | 3.25:1 | AA Large pass 3:1 | |
| Accent on background | 4.27:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.55:1 | AAA pass 4.5:1 | |
| Text on surface | 16.11:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.54:1 | AA pass 4.5:1 | |
| Label on primary | 6.10:1 | AA pass 4.5:1 | |
| Label on accent | 13.93:1 | AAA pass 4.5:1 | |
| Primary on background | 6.10:1 | AA pass 3:1 | |
| Accent on background | 13.93: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 | #FF0000 (Text 1) | #00FF00 (Text 2) | #0000FF (Text 3) | #FFFF00 (Text 4) | #FF00FF (Text 5) |
|---|---|---|---|---|---|
| #FF0000 | Same color | 2.91— | 2.15— | 3.72AA Large | 1.27— |
| #00FF00 | 2.91— | Same color | 6.26AA | 1.28— | 2.29— |
| #0000FF | 2.15— | 6.26AA | Same color | 8.00AAA | 2.74— |
| #FFFF00 | 3.72AA Large | 1.28— | 8.00AAA | Same color | 2.92— |
| #FF00FF | 1.27— | 2.29— | 2.74— | 2.92— | Same color |
Shades
Shades and tints (50–950)
