PreviewingGo to this paletteOpen in generator
Code
/* Foam White — colorset.net */
:root {
--color-1: #F0FFFF;
--color-2: #E0FEFE;
--color-3: #D0FDFD;
--color-4: #C0FCFC;
--color-5: #B0FBFB;
--color-bg: #F0FFFF;
--color-surface: #E7F6F6;
--color-border: #CBDEDE;
--color-text: #005C5D;
--color-muted: #517575;
--color-primary: #4D9797;
--color-on-primary: #000000;
--color-accent: #256363;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #001314;
--color-surface: #061E1E;
--color-border: #173333;
--color-text: #F0FFFF;
--color-muted: #839191;
--color-primary: #B0FBFB;
--color-on-primary: #001314;
--color-accent: #84C1C1;
--color-on-accent: #001314;
}
}
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 #B0FBFB |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #B0FBFB | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #B0FBFB | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #B0FBFB | adjusted for contrast · from #B0FBFB |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.61:1 | AAA pass 4.5:1 | |
| Text on surface | 7.03:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.93:1 | AA pass 4.5:1 | |
| Label on primary | 6.19:1 | AA pass 4.5:1 | |
| Label on accent | 6.90:1 | AA pass 4.5:1 | |
| Primary on background | 3.30:1 | AA Large pass 3:1 | |
| Accent on background | 6.72:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.54:1 | AAA pass 4.5:1 | |
| Text on surface | 16.87:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.82:1 | AA pass 4.5:1 | |
| Label on primary | 16.35:1 | AAA pass 4.5:1 | |
| Label on accent | 9.41:1 | AAA pass 4.5:1 | |
| Primary on background | 16.35:1 | AAA pass 3:1 | |
| Accent on background | 9.41: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 | #F0FFFF (Text 1) | #E0FEFE (Text 2) | #D0FDFD (Text 3) | #C0FCFC (Text 4) | #B0FBFB (Text 5) |
|---|---|---|---|---|---|
| #F0FFFF | Same color | 1.03— | 1.07— | 1.10— | 1.13— |
| #E0FEFE | 1.03— | Same color | 1.03— | 1.06— | 1.10— |
| #D0FDFD | 1.07— | 1.03— | Same color | 1.03— | 1.06— |
| #C0FCFC | 1.10— | 1.06— | 1.03— | Same color | 1.03— |
| #B0FBFB | 1.13— | 1.10— | 1.06— | 1.03— | Same color |
Shades
Shades and tints (50–950)
