PreviewingGo to this paletteOpen in generator
Code
/* Gallery Gray — colorset.net */
:root {
--color-1: #212121;
--color-2: #424242;
--color-3: #757575;
--color-4: #BDBDBD;
--color-5: #F5F5F5;
--color-bg: #F5F5F5;
--color-surface: #FCFCFC;
--color-border: #DFDBDC;
--color-text: #212121;
--color-muted: #6F6F6F;
--color-primary: #757575;
--color-on-primary: #FFFFFF;
--color-accent: #8C8C8C;
--color-on-accent: #212121;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #212121;
--color-surface: #2C2C2C;
--color-border: #444142;
--color-text: #F5F5F5;
--color-muted: #949494;
--color-primary: #757575;
--color-on-primary: #FFFFFF;
--color-accent: #BDBDBD;
--color-on-accent: #212121;
}
}
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 | from palette · color 5 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #757575 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.77:1 | AAA pass 4.5:1 | |
| Text on surface | 15.69:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.61:1 | AA pass 4.5:1 | |
| Label on primary | 4.61:1 | AA pass 4.5:1 | |
| Label on accent | 4.79:1 | AA pass 4.5:1 | |
| Primary on background | 4.23:1 | AA Large pass 3:1 | |
| Accent on background | 3.08:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.77:1 | AAA pass 4.5:1 | |
| Text on surface | 12.81:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.31:1 | AA pass 4.5:1 | |
| Label on primary | 4.61:1 | AA pass 4.5:1 | |
| Label on accent | 8.57:1 | AAA pass 4.5:1 | |
| Primary on background | 3.49:1 | AA Large pass 3:1 | |
| Accent on background | 8.57: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 | #212121 (Text 1) | #424242 (Text 2) | #757575 (Text 3) | #BDBDBD (Text 4) | #F5F5F5 (Text 5) |
|---|---|---|---|---|---|
| #212121 | Same color | 1.60— | 3.49AA Large | 8.57AAA | 14.77AAA |
| #424242 | 1.60— | Same color | 2.18— | 5.35AA | 9.22AAA |
| #757575 | 3.49AA Large | 2.18— | Same color | 2.45— | 4.23AA Large |
| #BDBDBD | 8.57AAA | 5.35AA | 2.45— | Same color | 1.72— |
| #F5F5F5 | 14.77AAA | 9.22AAA | 4.23AA Large | 1.72— | Same color |
Shades
Shades and tints (50–950)
