PreviewingGo to this paletteOpen in generator
Code
/* Platinum White — colorset.net */
:root {
--color-1: #F8F9FA;
--color-2: #F4F6F6;
--color-3: #F0F3F4;
--color-4: #EAEDED;
--color-5: #E5E8E8;
--color-bg: #F8F9FA;
--color-surface: #EFF0F1;
--color-border: #D4D7DB;
--color-text: #4D5050;
--color-muted: #6A6D6D;
--color-primary: #878989;
--color-on-primary: #000000;
--color-accent: #565858;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F1010;
--color-surface: #191A1A;
--color-border: #2A2F2F;
--color-text: #F8F9FA;
--color-muted: #8B8C8D;
--color-primary: #E5E8E8;
--color-on-primary: #0F1010;
--color-accent: #AFB1B1;
--color-on-accent: #0F1010;
}
}
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 #E5E8E8 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #E5E8E8 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #E5E8E8 | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #E5E8E8 | adjusted for contrast · from #E5E8E8 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.73:1 | AAA pass 4.5:1 | |
| Text on surface | 7.14:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.95:1 | AA pass 4.5:1 | |
| Label on primary | 5.97:1 | AA pass 4.5:1 | |
| Label on accent | 7.16:1 | AAA pass 4.5:1 | |
| Primary on background | 3.34:1 | AA Large pass 3:1 | |
| Accent on background | 6.79:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.08:1 | AAA pass 4.5:1 | |
| Text on surface | 16.55:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.66:1 | AA pass 4.5:1 | |
| Label on primary | 15.46:1 | AAA pass 4.5:1 | |
| Label on accent | 8.85:1 | AAA pass 4.5:1 | |
| Primary on background | 15.46:1 | AAA pass 3:1 | |
| Accent on background | 8.85: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 | #F8F9FA (Text 1) | #F4F6F6 (Text 2) | #F0F3F4 (Text 3) | #EAEDED (Text 4) | #E5E8E8 (Text 5) |
|---|---|---|---|---|---|
| #F8F9FA | Same color | 1.03— | 1.06— | 1.12— | 1.17— |
| #F4F6F6 | 1.03— | Same color | 1.03— | 1.09— | 1.14— |
| #F0F3F4 | 1.06— | 1.03— | Same color | 1.06— | 1.11— |
| #EAEDED | 1.12— | 1.09— | 1.06— | Same color | 1.05— |
| #E5E8E8 | 1.17— | 1.14— | 1.11— | 1.05— | Same color |
Shades
Shades and tints (50–950)
