PreviewingGo to this paletteOpen in generator
Code
/* Sun Hat — colorset.net */
:root {
--color-1: #FFFBEF;
--color-2: #E9B949;
--color-3: #C2557A;
--color-4: #F6E7BE;
--color-5: #2C2420;
--color-bg: #FFFBEF;
--color-surface: #F6F2E6;
--color-border: #DED9CA;
--color-text: #2C2420;
--color-muted: #766C68;
--color-primary: #BB4F74;
--color-on-primary: #FFFFFF;
--color-accent: #B08400;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120F0D;
--color-surface: #1C1917;
--color-border: #332C29;
--color-text: #FFFBEF;
--color-muted: #918D83;
--color-primary: #BB4F74;
--color-on-primary: #FFFFFF;
--color-accent: #E9B949;
--color-on-accent: #120F0D;
}
}
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 | adjusted for contrast · from #2C2420 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #C2557A | adjusted for contrast · from #C2557A |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #E9B949 | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.70:1 | AAA pass 4.5:1 | |
| Text on surface | 13.59:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.93:1 | AA pass 4.5:1 | |
| Label on primary | 4.68:1 | AA pass 4.5:1 | |
| Label on accent | 6.15:1 | AA pass 4.5:1 | |
| Primary on background | 4.53:1 | AA pass 3:1 | |
| Accent on background | 3.30:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.45:1 | AAA pass 4.5:1 | |
| Text on surface | 16.90:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.77:1 | AA pass 4.5:1 | |
| Label on primary | 4.68:1 | AA pass 4.5:1 | |
| Label on accent | 10.46:1 | AAA pass 4.5:1 | |
| Primary on background | 4.08:1 | AA Large pass 3:1 | |
| Accent on background | 10.46: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 | #FFFBEF (Text 1) | #E9B949 (Text 2) | #C2557A (Text 3) | #F6E7BE (Text 4) | #2C2420 (Text 5) |
|---|---|---|---|---|---|
| #FFFBEF | Same color | 1.76— | 4.16AA Large | 1.19— | 14.70AAA |
| #E9B949 | 1.76— | Same color | 2.36— | 1.49— | 8.33AAA |
| #C2557A | 4.16AA Large | 2.36— | Same color | 3.51AA Large | 3.53AA Large |
| #F6E7BE | 1.19— | 1.49— | 3.51AA Large | Same color | 12.38AAA |
| #2C2420 | 14.70AAA | 8.33AAA | 3.53AA Large | 12.38AAA | Same color |
Shades
Shades and tints (50–950)
