PreviewingGo to this paletteOpen in generator
Code
/* Digital Colors — colorset.net */
:root {
--color-1: #0366D6;
--color-2: #28A745;
--color-3: #D73A49;
--color-4: #F66A0A;
--color-5: #6F42C1;
--color-bg: #FFF4F0;
--color-surface: #FAEAE3;
--color-border: #E4D0C8;
--color-text: #54457C;
--color-muted: #6D6781;
--color-primary: #D73A49;
--color-on-primary: #FFFFFF;
--color-accent: #00892F;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #110C1D;
--color-surface: #1B1628;
--color-border: #2F2A40;
--color-text: #C39E8D;
--color-muted: #997D70;
--color-primary: #D73A49;
--color-on-primary: #FFFFFF;
--color-accent: #28A745;
--color-on-accent: #110C1D;
}
}
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 #F66A0A | adjusted for contrast · from #6F42C1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #6F42C1 | adjusted for contrast · from #F66A0A |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #28A745 | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.72:1 | AAA pass 4.5:1 | |
| Text on surface | 7.12:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 4.57:1 | AA pass 4.5:1 | |
| Label on accent | 4.55:1 | AA pass 4.5:1 | |
| Primary on background | 4.24:1 | AA Large pass 3:1 | |
| Accent on background | 4.21:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.86:1 | AAA pass 4.5:1 | |
| Text on surface | 7.21:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 4.57:1 | AA pass 4.5:1 | |
| Label on accent | 6.13:1 | AA pass 4.5:1 | |
| Primary on background | 4.20:1 | AA Large pass 3:1 | |
| Accent on background | 6.13:1 | AA 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 | #0366D6 (Text 1) | #28A745 (Text 2) | #D73A49 (Text 3) | #F66A0A (Text 4) | #6F42C1 (Text 5) |
|---|---|---|---|---|---|
| #0366D6 | Same color | 1.73— | 1.18— | 1.80— | 1.20— |
| #28A745 | 1.73— | Same color | 1.46— | 1.04— | 2.08— |
| #D73A49 | 1.18— | 1.46— | Same color | 1.52— | 1.42— |
| #F66A0A | 1.80— | 1.04— | 1.52— | Same color | 2.17— |
| #6F42C1 | 1.20— | 2.08— | 1.42— | 2.17— | Same color |
Shades
Shades and tints (50–950)
