PreviewingGo to this paletteOpen in generator
Code
/* Grayscale Steps — colorset.net */
:root {
--color-1: #1A1A1A;
--color-2: #4A4A4A;
--color-3: #7A7A7A;
--color-4: #AAAAAA;
--color-5: #DADADA;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #1A1A1A;
--color-muted: #6A6A6A;
--color-primary: #7A7A7A;
--color-on-primary: #000000;
--color-accent: #4A4A4A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1A1A1A;
--color-surface: #252525;
--color-border: #3C393A;
--color-text: #DADADA;
--color-muted: #8E8E8E;
--color-primary: #7A7A7A;
--color-on-primary: #000000;
--color-accent: #AAAAAA;
--color-on-accent: #1A1A1A;
}
}
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 #DADADA | 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 | from palette · color 2 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.25:1 | AAA pass 4.5:1 | |
| Text on surface | 14.87:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 4.89:1 | AA pass 4.5:1 | |
| Label on accent | 8.86:1 | AAA pass 4.5:1 | |
| Primary on background | 4.01:1 | AA Large pass 3:1 | |
| Accent on background | 8.27:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.45:1 | AAA pass 4.5:1 | |
| Text on surface | 10.96:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.31:1 | AA pass 4.5:1 | |
| Label on primary | 4.89:1 | AA pass 4.5:1 | |
| Label on accent | 7.49:1 | AAA pass 4.5:1 | |
| Primary on background | 4.05:1 | AA Large pass 3:1 | |
| Accent on background | 7.49: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 | #1A1A1A (Text 1) | #4A4A4A (Text 2) | #7A7A7A (Text 3) | #AAAAAA (Text 4) | #DADADA (Text 5) |
|---|---|---|---|---|---|
| #1A1A1A | Same color | 1.96— | 4.05AA Large | 7.49AAA | 12.45AAA |
| #4A4A4A | 1.96— | Same color | 2.06— | 3.81AA Large | 6.34AA |
| #7A7A7A | 4.05AA Large | 2.06— | Same color | 1.85— | 3.07AA Large |
| #AAAAAA | 7.49AAA | 3.81AA Large | 1.85— | Same color | 1.66— |
| #DADADA | 12.45AAA | 6.34AA | 3.07AA Large | 1.66— | Same color |
Shades
Shades and tints (50–950)
