PreviewingGo to this paletteOpen in generator
Code
/* Science Section — colorset.net */
:root {
--color-1: #F4F8F9;
--color-2: #0B6E99;
--color-3: #E0A100;
--color-4: #C9DCE3;
--color-5: #102029;
--color-bg: #F4F8F9;
--color-surface: #EBEFF0;
--color-border: #CFD7D9;
--color-text: #102029;
--color-muted: #5B6E78;
--color-primary: #9B6E00;
--color-on-primary: #FFFFFF;
--color-accent: #0B6E99;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #102029;
--color-surface: #1B2B34;
--color-border: #2D414D;
--color-text: #F4F8F9;
--color-muted: #919495;
--color-primary: #E0A100;
--color-on-primary: #102029;
--color-accent: #207AA6;
--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 #E0A100 | from palette · color 3 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #0B6E99 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.58:1 | AAA pass 4.5:1 | |
| Text on surface | 14.39:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 4.54:1 | AA pass 4.5:1 | |
| Label on accent | 5.67:1 | AA pass 4.5:1 | |
| Primary on background | 4.25:1 | AA Large pass 3:1 | |
| Accent on background | 5.30:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.58:1 | AAA pass 4.5:1 | |
| Text on surface | 13.62:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.45:1 | AA pass 4.5:1 | |
| Label on primary | 7.35:1 | AAA pass 4.5:1 | |
| Label on accent | 4.78:1 | AA pass 4.5:1 | |
| Primary on background | 7.35:1 | AAA pass 3:1 | |
| Accent on background | 3.49: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 | #F4F8F9 (Text 1) | #0B6E99 (Text 2) | #E0A100 (Text 3) | #C9DCE3 (Text 4) | #102029 (Text 5) |
|---|---|---|---|---|---|
| #F4F8F9 | Same color | 5.30AA | 2.12— | 1.32— | 15.58AAA |
| #0B6E99 | 5.30AA | Same color | 2.50— | 4.00AA Large | 2.94— |
| #E0A100 | 2.12— | 2.50— | Same color | 1.60— | 7.35AAA |
| #C9DCE3 | 1.32— | 4.00AA Large | 1.60— | Same color | 11.76AAA |
| #102029 | 15.58AAA | 2.94— | 7.35AAA | 11.76AAA | Same color |
Shades
Shades and tints (50–950)
