PreviewingGo to this paletteOpen in generator
Code
/* Granite Gray — colorset.net */
:root {
--color-1: #36454F;
--color-2: #4A5568;
--color-3: #718096;
--color-4: #A0AEC0;
--color-5: #CBD5E0;
--color-bg: #F4F7FA;
--color-surface: #EBEEF1;
--color-border: #D0D5DC;
--color-text: #36454F;
--color-muted: #5C6C76;
--color-primary: #718096;
--color-on-primary: #000000;
--color-accent: #4A5568;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0B1013;
--color-surface: #151A1E;
--color-border: #272F35;
--color-text: #CBD5E0;
--color-muted: #7A838D;
--color-primary: #718096;
--color-on-primary: #0B1013;
--color-accent: #596974;
--color-on-accent: #FFFFFF;
}
}
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 #CBD5E0 | adjusted for contrast · from #36454F |
| 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 | adjusted for contrast · from #4A5568 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.21:1 | AAA pass 4.5:1 | |
| Text on surface | 8.50:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 5.23:1 | AA pass 4.5:1 | |
| Label on accent | 7.53:1 | AAA pass 4.5:1 | |
| Primary on background | 3.73:1 | AA Large pass 3:1 | |
| Accent on background | 7.00:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.87:1 | AAA pass 4.5:1 | |
| Text on surface | 11.79:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 4.76:1 | AA pass 4.5:1 | |
| Label on accent | 5.68:1 | AA pass 4.5:1 | |
| Primary on background | 4.76:1 | AA pass 3:1 | |
| Accent on background | 3.37:1 | AA Large 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 | #36454F (Text 1) | #4A5568 (Text 2) | #718096 (Text 3) | #A0AEC0 (Text 4) | #CBD5E0 (Text 5) |
|---|---|---|---|---|---|
| #36454F | Same color | 1.32— | 2.47— | 4.39AA Large | 6.66AA |
| #4A5568 | 1.32— | Same color | 1.87— | 3.34AA Large | 5.06AA |
| #718096 | 2.47— | 1.87— | Same color | 1.78— | 2.70— |
| #A0AEC0 | 4.39AA Large | 3.34AA Large | 1.78— | Same color | 1.52— |
| #CBD5E0 | 6.66AA | 5.06AA | 2.70— | 1.52— | Same color |
Shades
Shades and tints (50–950)
