PreviewingGo to this paletteOpen in generator
Code
/* Sunbeam Fund — colorset.net */
:root {
--color-1: #F7F0C2;
--color-2: #2F4578;
--color-3: #C19900;
--color-4: #DEC358;
--color-5: #0F1624;
--color-bg: #F9F7EA;
--color-surface: #F0EEE1;
--color-border: #D8D6C5;
--color-text: #0F1624;
--color-muted: #626B7D;
--color-primary: #A78400;
--color-on-primary: #0F1624;
--color-accent: #2F4578;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F1624;
--color-surface: #19212F;
--color-border: #2C3648;
--color-text: #F5F0CA;
--color-muted: #908C70;
--color-primary: #C19900;
--color-on-primary: #0F1624;
--color-accent: #526AA0;
--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 | adjusted for contrast · from #F7F0C2 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | adjusted for contrast · from #F7F0C2 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #C19900 | from palette · color 3 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #2F4578 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.82:1 | AAA pass 4.5:1 | |
| Text on surface | 15.53:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 5.12:1 | AA pass 4.5:1 | |
| Label on accent | 9.36:1 | AAA pass 4.5:1 | |
| Primary on background | 3.28:1 | AA Large pass 3:1 | |
| Accent on background | 8.70:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.68:1 | AAA pass 4.5:1 | |
| Text on surface | 14.00:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.32:1 | AA pass 4.5:1 | |
| Label on primary | 6.74:1 | AA pass 4.5:1 | |
| Label on accent | 5.35:1 | AA pass 4.5:1 | |
| Primary on background | 6.74:1 | AA pass 3:1 | |
| Accent on background | 3.38: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 | #F7F0C2 (Text 1) | #2F4578 (Text 2) | #C19900 (Text 3) | #DEC358 (Text 4) | #0F1624 (Text 5) |
|---|---|---|---|---|---|
| #F7F0C2 | Same color | 8.11AAA | 2.33— | 1.51— | 15.68AAA |
| #2F4578 | 8.11AAA | Same color | 3.49AA Large | 5.37AA | 1.93— |
| #C19900 | 2.33— | 3.49AA Large | Same color | 1.54— | 6.74AA |
| #DEC358 | 1.51— | 5.37AA | 1.54— | Same color | 10.39AAA |
| #0F1624 | 15.68AAA | 1.93— | 6.74AA | 10.39AAA | Same color |
Shades
Shades and tints (50–950)
