PreviewingGo to this paletteOpen in generator
Code
/* Pencil Case — colorset.net */
:root {
--color-1: #F8F7F3;
--color-2: #2E5BFF;
--color-3: #FF6B3D;
--color-4: #FFD166;
--color-5: #1F2333;
--color-bg: #F8F7F3;
--color-surface: #EFEEEA;
--color-border: #D7D5CE;
--color-text: #1F2333;
--color-muted: #666B7E;
--color-primary: #2E5BFF;
--color-on-primary: #FFFFFF;
--color-accent: #967100;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1F2333;
--color-surface: #2A2E3F;
--color-border: #3F4458;
--color-text: #F8F7F3;
--color-muted: #989793;
--color-primary: #3B6AFF;
--color-on-primary: #000000;
--color-accent: #FFD166;
--color-on-accent: #1F2333;
}
}
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 | from palette · color 2 | adjusted for contrast · from #2E5BFF |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FF6B3D | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.55:1 | AAA pass 4.5:1 | |
| Text on surface | 13.43:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 5.18:1 | AA pass 4.5:1 | |
| Label on accent | 4.51:1 | AA pass 4.5:1 | |
| Primary on background | 4.83:1 | AA pass 3:1 | |
| Accent on background | 4.20:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.55:1 | AAA pass 4.5:1 | |
| Text on surface | 12.55:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.33:1 | AA pass 4.5:1 | |
| Label on primary | 4.69:1 | AA pass 4.5:1 | |
| Label on accent | 10.82:1 | AAA pass 4.5:1 | |
| Primary on background | 3.48:1 | AA Large pass 3:1 | |
| Accent on background | 10.82: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 | #F8F7F3 (Text 1) | #2E5BFF (Text 2) | #FF6B3D (Text 3) | #FFD166 (Text 4) | #1F2333 (Text 5) |
|---|---|---|---|---|---|
| #F8F7F3 | Same color | 4.83AA | 2.64— | 1.35— | 14.55AAA |
| #2E5BFF | 4.83AA | Same color | 1.83— | 3.59AA Large | 3.01AA Large |
| #FF6B3D | 2.64— | 1.83— | Same color | 1.96— | 5.51AA |
| #FFD166 | 1.35— | 3.59AA Large | 1.96— | Same color | 10.82AAA |
| #1F2333 | 14.55AAA | 3.01AA Large | 5.51AA | 10.82AAA | Same color |
Shades
Shades and tints (50–950)
