PreviewingGo to this paletteOpen in generator
Code
/* Alabaster White — colorset.net */
:root {
--color-1: #FAFAFA;
--color-2: #F5F5F5;
--color-3: #F0F0F0;
--color-4: #EBEBEB;
--color-5: #E6E6E6;
--color-bg: #FAFAFA;
--color-surface: #F1F1F1;
--color-border: #DBD7D8;
--color-text: #515151;
--color-muted: #6D6D6D;
--color-primary: #8A8A8A;
--color-on-primary: #000000;
--color-accent: #595959;
--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: #E6E6E6;
--color-on-primary: #0F0F0F;
--color-accent: #AFAFAF;
--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 #E6E6E6 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #E6E6E6 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #E6E6E6 | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #E6E6E6 | adjusted for contrast · from #E6E6E6 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.60:1 | AAA pass 4.5:1 | |
| Text on surface | 7.03:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 6.08:1 | AA pass 4.5:1 | |
| Label on accent | 7.00:1 | AAA pass 4.5:1 | |
| Primary on background | 3.31:1 | AA Large pass 3:1 | |
| Accent on background | 6.71: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 | 15.36:1 | AAA pass 4.5:1 | |
| Label on accent | 8.74:1 | AAA pass 4.5:1 | |
| Primary on background | 15.36:1 | AAA pass 3:1 | |
| Accent on background | 8.74: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 | #FAFAFA (Text 1) | #F5F5F5 (Text 2) | #F0F0F0 (Text 3) | #EBEBEB (Text 4) | #E6E6E6 (Text 5) |
|---|---|---|---|---|---|
| #FAFAFA | Same color | 1.04— | 1.09— | 1.14— | 1.20— |
| #F5F5F5 | 1.04— | Same color | 1.05— | 1.09— | 1.14— |
| #F0F0F0 | 1.09— | 1.05— | Same color | 1.05— | 1.10— |
| #EBEBEB | 1.14— | 1.09— | 1.05— | Same color | 1.05— |
| #E6E6E6 | 1.20— | 1.14— | 1.10— | 1.05— | Same color |
Shades
Shades and tints (50–950)
