PreviewingGo to this paletteOpen in generator
Code
/* Foam Blue — colorset.net */
:root {
--color-1: #87CEEB;
--color-2: #9AD4F0;
--color-3: #ADDAF5;
--color-4: #C0E0FA;
--color-5: #D3E6FF;
--color-bg: #F2F7FF;
--color-surface: #E8EEF6;
--color-border: #CED6E0;
--color-text: #00546C;
--color-muted: #506E7B;
--color-primary: #357D97;
--color-on-primary: #FFFFFF;
--color-accent: #798AA1;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #00121A;
--color-surface: #061C25;
--color-border: #17323C;
--color-text: #D3E6FF;
--color-muted: #728399;
--color-primary: #87CEEB;
--color-on-primary: #00121A;
--color-accent: #5D97AE;
--color-on-accent: #00121A;
}
}
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 | adjusted for contrast · from #D3E6FF | adjusted for contrast · from #87CEEB |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #87CEEB | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #87CEEB | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #87CEEB | adjusted for contrast · from #87CEEB |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.86:1 | AAA pass 4.5:1 | |
| Text on surface | 7.24:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 4.63:1 | AA pass 4.5:1 | |
| Label on accent | 5.96:1 | AA pass 4.5:1 | |
| Primary on background | 4.31:1 | AA Large pass 3:1 | |
| Accent on background | 3.27:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.01:1 | AAA pass 4.5:1 | |
| Text on surface | 13.77:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.92:1 | AA pass 4.5:1 | |
| Label on primary | 10.95:1 | AAA pass 4.5:1 | |
| Label on accent | 5.90:1 | AA pass 4.5:1 | |
| Primary on background | 10.95:1 | AAA pass 3:1 | |
| Accent on background | 5.90:1 | AA 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 | #87CEEB (Text 1) | #9AD4F0 (Text 2) | #ADDAF5 (Text 3) | #C0E0FA (Text 4) | #D3E6FF (Text 5) |
|---|---|---|---|---|---|
| #87CEEB | Same color | 1.08— | 1.17— | 1.27— | 1.37— |
| #9AD4F0 | 1.08— | Same color | 1.08— | 1.17— | 1.27— |
| #ADDAF5 | 1.17— | 1.08— | Same color | 1.08— | 1.17— |
| #C0E0FA | 1.27— | 1.17— | 1.08— | Same color | 1.08— |
| #D3E6FF | 1.37— | 1.27— | 1.17— | 1.08— | Same color |
Shades
Shades and tints (50–950)
