PreviewingGo to this paletteOpen in generator
Code
/* Gray Light — colorset.net */
:root {
--color-1: #FAFAFA;
--color-2: #F5F5F5;
--color-3: #EEEEEE;
--color-4: #E0E0E0;
--color-5: #BDBDBD;
--color-bg: #FAFAFA;
--color-surface: #F1F1F1;
--color-border: #DBD7D8;
--color-text: #4F4F4F;
--color-muted: #6C6C6C;
--color-primary: #8B8B8B;
--color-on-primary: #000000;
--color-accent: #5A5A5A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F0F;
--color-surface: #191919;
--color-border: #302D2E;
--color-text: #FAFAFA;
--color-muted: #8D8D8D;
--color-primary: #BDBDBD;
--color-on-primary: #0F0F0F;
--color-accent: #E0E0E0;
--color-on-accent: #0F0F0F;
}
}
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 1 | adjusted for contrast · from #BDBDBD |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #BDBDBD | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #BDBDBD | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #BDBDBD | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.85:1 | AAA pass 4.5:1 | |
| Text on surface | 7.25:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 6.16:1 | AA pass 4.5:1 | |
| Label on accent | 6.90:1 | AA pass 4.5:1 | |
| Primary on background | 3.26:1 | AA Large pass 3:1 | |
| Accent on background | 6.61:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.36:1 | AAA pass 4.5:1 | |
| Text on surface | 16.84:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.78:1 | AA pass 4.5:1 | |
| Label on primary | 10.20:1 | AAA pass 4.5:1 | |
| Label on accent | 14.52:1 | AAA pass 4.5:1 | |
| Primary on background | 10.20:1 | AAA pass 3:1 | |
| Accent on background | 14.52: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 | #FAFAFA (Text 1) | #F5F5F5 (Text 2) | #EEEEEE (Text 3) | #E0E0E0 (Text 4) | #BDBDBD (Text 5) |
|---|---|---|---|---|---|
| #FAFAFA | Same color | 1.04— | 1.11— | 1.26— | 1.80— |
| #F5F5F5 | 1.04— | Same color | 1.06— | 1.21— | 1.72— |
| #EEEEEE | 1.11— | 1.06— | Same color | 1.14— | 1.62— |
| #E0E0E0 | 1.26— | 1.21— | 1.14— | Same color | 1.42— |
| #BDBDBD | 1.80— | 1.72— | 1.62— | 1.42— | Same color |
Shades
Shades and tints (50–950)
