PreviewingGo to this paletteOpen in generator
Code
/* Crystal White — colorset.net */
:root {
--color-1: #B0C4DE;
--color-2: #E6E6FA;
--color-3: #F0F8FF;
--color-4: #FFFAFA;
--color-5: #FFFFFF;
--color-bg: #FFFFFF;
--color-surface: #F6F6F6;
--color-border: #E0DCDD;
--color-text: #44556B;
--color-muted: #617288;
--color-primary: #7C8FA7;
--color-on-primary: #000000;
--color-accent: #4E5D70;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0A1017;
--color-surface: #141A21;
--color-border: #262E39;
--color-text: #FFFFFF;
--color-muted: #8F8F8F;
--color-primary: #B0C4DE;
--color-on-primary: #0A1017;
--color-accent: #E6E6FA;
--color-on-accent: #0A1017;
}
}
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 5 | adjusted for contrast · from #B0C4DE |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #B0C4DE | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #B0C4DE | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #B0C4DE | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.62:1 | AAA pass 4.5:1 | |
| Text on surface | 7.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.92:1 | AA pass 4.5:1 | |
| Label on primary | 6.34:1 | AA pass 4.5:1 | |
| Label on accent | 6.72:1 | AA pass 4.5:1 | |
| Primary on background | 3.31:1 | AA Large pass 3:1 | |
| Accent on background | 6.72:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 19.10:1 | AAA pass 4.5:1 | |
| Text on surface | 17.51:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.91:1 | AA pass 4.5:1 | |
| Label on primary | 10.73:1 | AAA pass 4.5:1 | |
| Label on accent | 15.52:1 | AAA pass 4.5:1 | |
| Primary on background | 10.73:1 | AAA pass 3:1 | |
| Accent on background | 15.52: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 | #B0C4DE (Text 1) | #E6E6FA (Text 2) | #F0F8FF (Text 3) | #FFFAFA (Text 4) | #FFFFFF (Text 5) |
|---|---|---|---|---|---|
| #B0C4DE | Same color | 1.45— | 1.66— | 1.72— | 1.78— |
| #E6E6FA | 1.45— | Same color | 1.15— | 1.19— | 1.23— |
| #F0F8FF | 1.66— | 1.15— | Same color | 1.04— | 1.07— |
| #FFFAFA | 1.72— | 1.19— | 1.04— | Same color | 1.03— |
| #FFFFFF | 1.78— | 1.23— | 1.07— | 1.03— | Same color |
Shades
Shades and tints (50–950)
