PreviewingGo to this paletteOpen in generator
Code
/* Lifeline — colorset.net */
:root {
--color-1: #F2F6F8;
--color-2: #0B4F6C;
--color-3: #F25F5C;
--color-4: #F9C2C1;
--color-5: #0A1F2B;
--color-bg: #F2F6F8;
--color-surface: #FBFDFE;
--color-border: #D6DEE2;
--color-text: #0A1F2B;
--color-muted: #5B7281;
--color-primary: #EE5C59;
--color-on-primary: #0A1F2B;
--color-accent: #0B4F6C;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0A1F2B;
--color-surface: #152A36;
--color-border: #28404F;
--color-text: #F2F6F8;
--color-muted: #8F9294;
--color-primary: #F25F5C;
--color-on-primary: #0A1F2B;
--color-accent: #3B7796;
--color-on-accent: #FFFFFF;
}
}
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 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #F25F5C | from palette · color 3 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #0B4F6C |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.53:1 | AAA pass 4.5:1 | |
| Text on surface | 16.55:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.63:1 | AA pass 4.5:1 | |
| Label on primary | 5.07:1 | AA pass 4.5:1 | |
| Label on accent | 8.94:1 | AAA pass 4.5:1 | |
| Primary on background | 3.06:1 | AA Large pass 3:1 | |
| Accent on background | 8.22:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.53:1 | AAA pass 4.5:1 | |
| Text on surface | 13.64:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.39:1 | AA pass 4.5:1 | |
| Label on primary | 5.28:1 | AA pass 4.5:1 | |
| Label on accent | 4.92:1 | AA pass 4.5:1 | |
| Primary on background | 5.28:1 | AA pass 3:1 | |
| Accent on background | 3.43:1 | AA Large 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 | #F2F6F8 (Text 1) | #0B4F6C (Text 2) | #F25F5C (Text 3) | #F9C2C1 (Text 4) | #0A1F2B (Text 5) |
|---|---|---|---|---|---|
| #F2F6F8 | Same color | 8.22AAA | 2.94— | 1.43— | 15.53AAA |
| #0B4F6C | 8.22AAA | Same color | 2.80— | 5.75AA | 1.89— |
| #F25F5C | 2.94— | 2.80— | Same color | 2.06— | 5.28AA |
| #F9C2C1 | 1.43— | 5.75AA | 2.06— | Same color | 10.87AAA |
| #0A1F2B | 15.53AAA | 1.89— | 5.28AA | 10.87AAA | Same color |
Shades
Shades and tints (50–950)
