PreviewingGo to this paletteOpen in generator
Code
/* Lego Brick — colorset.net */
:root {
--color-1: #E3121E;
--color-2: #EBBF00;
--color-3: #127EEE;
--color-4: #00A943;
--color-5: #1B2433;
--color-bg: #FBF7E8;
--color-surface: #F2EDDF;
--color-border: #DBD5C3;
--color-text: #1B2433;
--color-muted: #616C7E;
--color-primary: #E3121E;
--color-on-primary: #FFFFFF;
--color-accent: #0075E2;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1B2433;
--color-surface: #262F3F;
--color-border: #3A4558;
--color-text: #CFC4A0;
--color-muted: #9F967B;
--color-primary: #EA2126;
--color-on-primary: #000000;
--color-accent: #127EEE;
--color-on-accent: #000000;
}
}
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 #EBBF00 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | adjusted for contrast · from #EBBF00 |
| Muted text | derived | derived |
| Primary | from palette · color 1 | adjusted for contrast · from #E3121E |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #127EEE | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.53:1 | AAA pass 4.5:1 | |
| Text on surface | 13.33:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.95:1 | AA pass 4.5:1 | |
| Label on primary | 4.80:1 | AA pass 4.5:1 | |
| Label on accent | 4.52:1 | AA pass 4.5:1 | |
| Primary on background | 4.48:1 | AA Large pass 3:1 | |
| Accent on background | 4.22:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.95:1 | AAA pass 4.5:1 | |
| Text on surface | 7.72:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.29:1 | AA pass 4.5:1 | |
| Label on primary | 4.74:1 | AA pass 4.5:1 | |
| Label on accent | 5.24:1 | AA pass 4.5:1 | |
| Primary on background | 3.52:1 | AA Large pass 3:1 | |
| Accent on background | 3.89: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 | #E3121E (Text 1) | #EBBF00 (Text 2) | #127EEE (Text 3) | #00A943 (Text 4) | #1B2433 (Text 5) |
|---|---|---|---|---|---|
| #E3121E | Same color | 2.74— | 1.20— | 1.55— | 3.25AA Large |
| #EBBF00 | 2.74— | Same color | 2.29— | 1.77— | 8.90AAA |
| #127EEE | 1.20— | 2.29— | Same color | 1.29— | 3.89AA Large |
| #00A943 | 1.55— | 1.77— | 1.29— | Same color | 5.02AA |
| #1B2433 | 3.25AA Large | 8.90AAA | 3.89AA Large | 5.02AA | Same color |
Shades
Shades and tints (50–950)
