PreviewingGo to this paletteOpen in generator
Code
/* Sunny Classroom — colorset.net */
:root {
--color-1: #FDFAEF;
--color-2: #F3C935;
--color-3: #4773AB;
--color-4: #C3972A;
--color-5: #212730;
--color-bg: #FDFAEF;
--color-surface: #F4F1E6;
--color-border: #DCD8CA;
--color-text: #212730;
--color-muted: #656C77;
--color-primary: #B08405;
--color-on-primary: #000000;
--color-accent: #4773AB;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0D1013;
--color-surface: #171A1D;
--color-border: #2A2E34;
--color-text: #FDFAEF;
--color-muted: #908D83;
--color-primary: #C3972A;
--color-on-primary: #0D1013;
--color-accent: #4773AB;
--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 | adjusted for contrast · from #212730 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #C3972A | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 3 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.38:1 | AAA pass 4.5:1 | |
| Text on surface | 13.29:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 6.15:1 | AA pass 4.5:1 | |
| Label on accent | 4.87:1 | AA pass 4.5:1 | |
| Primary on background | 3.27:1 | AA Large pass 3:1 | |
| Accent on background | 4.66:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.26:1 | AAA pass 4.5:1 | |
| Text on surface | 16.72:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.75:1 | AA pass 4.5:1 | |
| Label on primary | 7.07:1 | AAA pass 4.5:1 | |
| Label on accent | 4.87:1 | AA pass 4.5:1 | |
| Primary on background | 7.07:1 | AAA pass 3:1 | |
| Accent on background | 3.91: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 | #FDFAEF (Text 1) | #F3C935 (Text 2) | #4773AB (Text 3) | #C3972A (Text 4) | #212730 (Text 5) |
|---|---|---|---|---|---|
| #FDFAEF | Same color | 1.52— | 4.66AA | 2.58— | 14.38AAA |
| #F3C935 | 1.52— | Same color | 3.07AA Large | 1.70— | 9.46AAA |
| #4773AB | 4.66AA | 3.07AA Large | Same color | 1.81— | 3.08AA Large |
| #C3972A | 2.58— | 1.70— | 1.81— | Same color | 5.57AA |
| #212730 | 14.38AAA | 9.46AAA | 3.08AA Large | 5.57AA | Same color |
Shades
Shades and tints (50–950)
