PreviewingGo to this paletteOpen in generator
Code
/* Black White — colorset.net */
:root {
--color-1: #000000;
--color-2: #FFFFFF;
--color-3: #F5F5F5;
--color-4: #E0E0E0;
--color-5: #4682B4;
--color-bg: #FFFFFF;
--color-surface: #F6F6F6;
--color-border: #E0DCDD;
--color-text: #000000;
--color-muted: #4D4D4D;
--color-primary: #3D79AA;
--color-on-primary: #FFFFFF;
--color-accent: #8C8C8C;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #000000;
--color-surface: #000000;
--color-border: #090707;
--color-text: #FFFFFF;
--color-muted: #7A7A7A;
--color-primary: #3D79AA;
--color-on-primary: #000000;
--color-accent: #5B5B5B;
--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 | from palette · color 2 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 2 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #4682B4 | adjusted for contrast · from #4682B4 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #4682B4 | adjusted for contrast · from #4682B4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 21.00:1 | AAA pass 4.5:1 | |
| Text on surface | 19.43:1 | AAA pass 4.5:1 | |
| Muted text on background | 8.45:1 | AAA pass 4.5:1 | |
| Label on primary | 4.65:1 | AA pass 4.5:1 | |
| Label on accent | 6.25:1 | AA pass 4.5:1 | |
| Primary on background | 4.65:1 | AA pass 3:1 | |
| Accent on background | 3.36:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 21.00:1 | AAA pass 4.5:1 | |
| Text on surface | 21.00:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.89:1 | AA pass 4.5:1 | |
| Label on primary | 4.51:1 | AA pass 4.5:1 | |
| Label on accent | 6.79:1 | AA pass 4.5:1 | |
| Primary on background | 4.51:1 | AA pass 3:1 | |
| Accent on background | 3.09: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 | #000000 (Text 1) | #FFFFFF (Text 2) | #F5F5F5 (Text 3) | #E0E0E0 (Text 4) | #4682B4 (Text 5) |
|---|---|---|---|---|---|
| #000000 | Same color | 21.00AAA | 19.26AAA | 15.91AAA | 5.11AA |
| #FFFFFF | 21.00AAA | Same color | 1.09— | 1.32— | 4.11AA Large |
| #F5F5F5 | 19.26AAA | 1.09— | Same color | 1.21— | 3.77AA Large |
| #E0E0E0 | 15.91AAA | 1.32— | 1.21— | Same color | 3.11AA Large |
| #4682B4 | 5.11AA | 4.11AA Large | 3.77AA Large | 3.11AA Large | Same color |
Shades
Shades and tints (50–950)
