PreviewingGo to this paletteOpen in generator
Code
/* Platinum Light — colorset.net */
:root {
--color-1: #E8E8E8;
--color-2: #D0D0D0;
--color-3: #B8B8B8;
--color-4: #A0A0A0;
--color-5: #888888;
--color-bg: #E8E8E8;
--color-surface: #EFEFEF;
--color-border: #D3CECF;
--color-text: #4C4C4C;
--color-muted: #676767;
--color-primary: #858585;
--color-on-primary: #000000;
--color-accent: #545454;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F0F;
--color-surface: #191919;
--color-border: #302D2E;
--color-text: #E8E8E8;
--color-muted: #838383;
--color-primary: #888888;
--color-on-primary: #0F0F0F;
--color-accent: #D0D0D0;
--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 #888888 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #888888 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #888888 | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #888888 | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.01:1 | AAA pass 4.5:1 | |
| Text on surface | 7.47:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.62:1 | AA pass 4.5:1 | |
| Label on primary | 5.69:1 | AA pass 4.5:1 | |
| Label on accent | 7.57:1 | AAA pass 4.5:1 | |
| Primary on background | 3.01:1 | AA Large pass 3:1 | |
| Accent on background | 6.18:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.64:1 | AAA pass 4.5:1 | |
| Text on surface | 14.35:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 5.41:1 | AA pass 4.5:1 | |
| Label on accent | 12.43:1 | AAA pass 4.5:1 | |
| Primary on background | 5.41:1 | AA pass 3:1 | |
| Accent on background | 12.43: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 | #E8E8E8 (Text 1) | #D0D0D0 (Text 2) | #B8B8B8 (Text 3) | #A0A0A0 (Text 4) | #888888 (Text 5) |
|---|---|---|---|---|---|
| #E8E8E8 | Same color | 1.26— | 1.62— | 2.13— | 2.89— |
| #D0D0D0 | 1.26— | Same color | 1.29— | 1.70— | 2.30— |
| #B8B8B8 | 1.62— | 1.29— | Same color | 1.32— | 1.79— |
| #A0A0A0 | 2.13— | 1.70— | 1.32— | Same color | 1.36— |
| #888888 | 2.89— | 2.30— | 1.79— | 1.36— | Same color |
Shades
Shades and tints (50–950)
