PreviewingGo to this paletteOpen in generator
Code
/* Cart Indigo — colorset.net */
:root {
--color-1: #F6F7FF;
--color-2: #4F46E5;
--color-3: #F97316;
--color-4: #C7CBF5;
--color-5: #1B1A3A;
--color-bg: #F6F7FF;
--color-surface: #EDEEF6;
--color-border: #D3D5E0;
--color-text: #1B1A3A;
--color-muted: #676982;
--color-primary: #4F46E5;
--color-on-primary: #FFFFFF;
--color-accent: #E06300;
--color-on-accent: #1B1A3A;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1B1A3A;
--color-surface: #252546;
--color-border: #3C3D54;
--color-text: #F6F7FF;
--color-muted: #93949B;
--color-primary: #5E5BFA;
--color-on-primary: #FFFFFF;
--color-accent: #F97316;
--color-on-accent: #1B1A3A;
}
}
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 #4F46E5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F97316 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.67:1 | AAA pass 4.5:1 | |
| Text on surface | 14.47:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 6.29:1 | AA pass 4.5:1 | |
| Label on accent | 4.74:1 | AA pass 4.5:1 | |
| Primary on background | 5.89:1 | AA pass 3:1 | |
| Accent on background | 3.30:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.67:1 | AAA pass 4.5:1 | |
| Text on surface | 13.74:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.54:1 | AA pass 4.5:1 | |
| Label on primary | 4.82:1 | AA pass 4.5:1 | |
| Label on accent | 5.97:1 | AA pass 4.5:1 | |
| Primary on background | 3.47:1 | AA Large pass 3:1 | |
| Accent on background | 5.97: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 | #F6F7FF (Text 1) | #4F46E5 (Text 2) | #F97316 (Text 3) | #C7CBF5 (Text 4) | #1B1A3A (Text 5) |
|---|---|---|---|---|---|
| #F6F7FF | Same color | 5.89AA | 2.63— | 1.48— | 15.67AAA |
| #4F46E5 | 5.89AA | Same color | 2.24— | 3.98AA Large | 2.66— |
| #F97316 | 2.63— | 2.24— | Same color | 1.77— | 5.97AA |
| #C7CBF5 | 1.48— | 3.98AA Large | 1.77— | Same color | 10.59AAA |
| #1B1A3A | 15.67AAA | 2.66— | 5.97AA | 10.59AAA | Same color |
Shades
Shades and tints (50–950)
