PreviewingGo to this paletteOpen in generator
Code
/* Gumball Machine — colorset.net */
:root {
--color-1: #EA2126;
--color-2: #ED7B00;
--color-3: #EDC812;
--color-4: #09AF51;
--color-5: #337AEF;
--color-bg: #FBF7E8;
--color-surface: #F1EEDF;
--color-border: #DAD5C3;
--color-text: #314F81;
--color-muted: #5E6C83;
--color-primary: #E61A22;
--color-on-primary: #FFFFFF;
--color-accent: #2970E5;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #060F1E;
--color-surface: #101A2A;
--color-border: #222E42;
--color-text: #D4CBA6;
--color-muted: #8A8368;
--color-primary: #E61A22;
--color-on-primary: #FFFFFF;
--color-accent: #2970E5;
--color-on-accent: #FFFFFF;
}
}
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 #EDC812 | adjusted for contrast · from #337AEF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #337AEF | adjusted for contrast · from #EDC812 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #EA2126 | adjusted for contrast · from #EA2126 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #337AEF | adjusted for contrast · from #337AEF |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.63:1 | AAA pass 4.5:1 | |
| Text on surface | 7.03:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 4.63:1 | AA pass 4.5:1 | |
| Label on accent | 4.62:1 | AA pass 4.5:1 | |
| Primary on background | 4.32:1 | AA Large pass 3:1 | |
| Accent on background | 4.31:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.78:1 | AAA pass 4.5:1 | |
| Text on surface | 10.71:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 4.63:1 | AA pass 4.5:1 | |
| Label on accent | 4.62:1 | AA pass 4.5:1 | |
| Primary on background | 4.14:1 | AA Large pass 3:1 | |
| Accent on background | 4.15:1 | AA Large 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 | #EA2126 (Text 1) | #ED7B00 (Text 2) | #EDC812 (Text 3) | #09AF51 (Text 4) | #337AEF (Text 5) |
|---|---|---|---|---|---|
| #EA2126 | Same color | 1.57— | 2.71— | 1.53— | 1.09— |
| #ED7B00 | 1.57— | Same color | 1.73— | 1.02— | 1.44— |
| #EDC812 | 2.71— | 1.73— | Same color | 1.77— | 2.49— |
| #09AF51 | 1.53— | 1.02— | 1.77— | Same color | 1.40— |
| #337AEF | 1.09— | 1.44— | 2.49— | 1.40— | Same color |
Shades
Shades and tints (50–950)
