PreviewingGo to this paletteOpen in generator
Code
/* Light Gray — colorset.net */
:root {
--color-1: #9E9E9E;
--color-2: #BDBDBD;
--color-3: #E0E0E0;
--color-4: #F5F5F5;
--color-5: #FAFAFA;
--color-bg: #FAFAFA;
--color-surface: #F1F1F1;
--color-border: #DBD7D8;
--color-text: #4F4F4F;
--color-muted: #6C6C6C;
--color-primary: #898989;
--color-on-primary: #000000;
--color-accent: #585858;
--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: #9E9E9E;
--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 5 | adjusted for contrast · from #9E9E9E |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #9E9E9E | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #9E9E9E | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #9E9E9E | from palette · color 3 |
| 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.00:1 | AA pass 4.5:1 | |
| Label on accent | 7.11:1 | AAA pass 4.5:1 | |
| Primary on background | 3.35:1 | AA Large pass 3:1 | |
| Accent on background | 6.82: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 | 7.15:1 | AAA pass 4.5:1 | |
| Label on accent | 14.52:1 | AAA pass 4.5:1 | |
| Primary on background | 7.15: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 | #9E9E9E (Text 1) | #BDBDBD (Text 2) | #E0E0E0 (Text 3) | #F5F5F5 (Text 4) | #FAFAFA (Text 5) |
|---|---|---|---|---|---|
| #9E9E9E | Same color | 1.43— | 2.03— | 2.46— | 2.57— |
| #BDBDBD | 1.43— | Same color | 1.42— | 1.72— | 1.80— |
| #E0E0E0 | 2.03— | 1.42— | Same color | 1.21— | 1.26— |
| #F5F5F5 | 2.46— | 1.72— | 1.21— | Same color | 1.04— |
| #FAFAFA | 2.57— | 1.80— | 1.26— | 1.04— | Same color |
Shades
Shades and tints (50–950)
