PreviewingGo to this paletteOpen in generator
Code
/* Fog Harbor — colorset.net */
:root {
--color-1: #DBE7ED;
--color-2: #ABCAD9;
--color-3: #80ABC5;
--color-4: #A1C6C3;
--color-5: #5C7E9C;
--color-bg: #F4F7F9;
--color-surface: #EAEEF0;
--color-border: #CFD6DA;
--color-text: #30506C;
--color-muted: #576C80;
--color-primary: #5C7E9C;
--color-on-primary: #000000;
--color-accent: #7D888E;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #071019;
--color-surface: #101B24;
--color-border: #222F3C;
--color-text: #DBE7ED;
--color-muted: #798489;
--color-primary: #5C7E9C;
--color-on-primary: #000000;
--color-accent: #ABCAD9;
--color-on-accent: #071019;
}
}
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 #DBE7ED | adjusted for contrast · from #5C7E9C |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #5C7E9C | from palette · color 1 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #5C7E9C | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.84:1 | AAA pass 4.5:1 | |
| Text on surface | 7.22:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 4.92:1 | AA pass 4.5:1 | |
| Label on accent | 5.78:1 | AA pass 4.5:1 | |
| Primary on background | 3.97:1 | AA Large pass 3:1 | |
| Accent on background | 3.37:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.19:1 | AAA pass 4.5:1 | |
| Text on surface | 13.84:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 4.92:1 | AA pass 4.5:1 | |
| Label on accent | 11.10:1 | AAA pass 4.5:1 | |
| Primary on background | 4.48:1 | AA Large pass 3:1 | |
| Accent on background | 11.10: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 | #DBE7ED (Text 1) | #ABCAD9 (Text 2) | #80ABC5 (Text 3) | #A1C6C3 (Text 4) | #5C7E9C (Text 5) |
|---|---|---|---|---|---|
| #DBE7ED | Same color | 1.37— | 1.95— | 1.46— | 3.39AA Large |
| #ABCAD9 | 1.37— | Same color | 1.42— | 1.07— | 2.48— |
| #80ABC5 | 1.95— | 1.42— | Same color | 1.33— | 1.74— |
| #A1C6C3 | 1.46— | 1.07— | 1.33— | Same color | 2.31— |
| #5C7E9C | 3.39AA Large | 2.48— | 1.74— | 2.31— | Same color |
Shades
Shades and tints (50–950)
