PreviewingGo to this paletteOpen in generator
Code
/* Game Colors — colorset.net */
:root {
--color-1: #FF0000;
--color-2: #0000FF;
--color-3: #FFFF00;
--color-4: #228B22;
--color-5: #8B4513;
--color-bg: #F7F8E9;
--color-surface: #EEEFE0;
--color-border: #D5D7C4;
--color-text: #344C7F;
--color-muted: #5E6A82;
--color-primary: #0000FF;
--color-on-primary: #FFFFFF;
--color-accent: #797900;
--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: #1653FF;
--color-on-primary: #FFFFFF;
--color-accent: #FFFF00;
--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 #8B4513 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8B4513 | adjusted for contrast · from #FFFF00 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | adjusted for contrast · from #0000FF |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #228B22 | from palette · color 3 |
| 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 | 8.59:1 | AAA pass 4.5:1 | |
| Label on accent | 4.62:1 | AA pass 4.5:1 | |
| Primary on background | 8.00:1 | AAA pass 3:1 | |
| Accent on background | 4.30: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 | 5.65:1 | AA pass 4.5:1 | |
| Label on accent | 17.80:1 | AAA pass 4.5:1 | |
| Primary on background | 3.38:1 | AA Large pass 3:1 | |
| Accent on background | 17.80: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) | #0000FF (Text 2) | #FFFF00 (Text 3) | #228B22 (Text 4) | #8B4513 (Text 5) |
|---|---|---|---|---|---|
| #FF0000 | Same color | 2.15— | 3.72AA Large | 1.10— | 1.78— |
| #0000FF | 2.15— | Same color | 8.00AAA | 1.96— | 1.21— |
| #FFFF00 | 3.72AA Large | 8.00AAA | Same color | 4.09AA Large | 6.61AA |
| #228B22 | 1.10— | 1.96— | 4.09AA Large | Same color | 1.62— |
| #8B4513 | 1.78— | 1.21— | 6.61AA | 1.62— | Same color |
Shades
Shades and tints (50–950)
