PreviewingGo to this paletteOpen in generator
Code
/* Gray Scale — colorset.net */
:root {
--color-1: #000000;
--color-2: #FFFFFF;
--color-3: #696969;
--color-4: #C0C0C0;
--color-5: #F5F5F5;
--color-bg: #FFFFFF;
--color-surface: #F6F6F6;
--color-border: #E0DCDD;
--color-text: #000000;
--color-muted: #4D4D4D;
--color-primary: #696969;
--color-on-primary: #FFFFFF;
--color-accent: #8C8C8C;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #000000;
--color-surface: #000000;
--color-border: #090707;
--color-text: #FFFFFF;
--color-muted: #7A7A7A;
--color-primary: #696969;
--color-on-primary: #FFFFFF;
--color-accent: #C0C0C0;
--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 | from palette · color 2 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 2 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #696969 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 21.00:1 | AAA pass 4.5:1 | |
| Text on surface | 19.43:1 | AAA pass 4.5:1 | |
| Muted text on background | 8.45:1 | AAA pass 4.5:1 | |
| Label on primary | 5.49:1 | AA pass 4.5:1 | |
| Label on accent | 6.25:1 | AA pass 4.5:1 | |
| Primary on background | 5.49:1 | AA pass 3:1 | |
| Accent on background | 3.36:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 21.00:1 | AAA pass 4.5:1 | |
| Text on surface | 21.00:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.89:1 | AA pass 4.5:1 | |
| Label on primary | 5.49:1 | AA pass 4.5:1 | |
| Label on accent | 11.54:1 | AAA pass 4.5:1 | |
| Primary on background | 3.83:1 | AA Large pass 3:1 | |
| Accent on background | 11.54: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 | #000000 (Text 1) | #FFFFFF (Text 2) | #696969 (Text 3) | #C0C0C0 (Text 4) | #F5F5F5 (Text 5) |
|---|---|---|---|---|---|
| #000000 | Same color | 21.00AAA | 3.83AA Large | 11.54AAA | 19.26AAA |
| #FFFFFF | 21.00AAA | Same color | 5.49AA | 1.82— | 1.09— |
| #696969 | 3.83AA Large | 5.49AA | Same color | 3.02AA Large | 5.04AA |
| #C0C0C0 | 11.54AAA | 1.82— | 3.02AA Large | Same color | 1.67— |
| #F5F5F5 | 19.26AAA | 1.09— | 5.04AA | 1.67— | Same color |
Shades
Shades and tints (50–950)
