PreviewingGo to this paletteOpen in generator
Code
/* Daylight IDE — colorset.net */
:root {
--color-1: #FBFBFD;
--color-2: #3D7BF7;
--color-3: #E5484D;
--color-4: #FFE58F;
--color-5: #2A2E3A;
--color-bg: #FBFBFD;
--color-surface: #F2F2F4;
--color-border: #D9D9DE;
--color-text: #2A2E3A;
--color-muted: #6A6E7C;
--color-primary: #316EE9;
--color-on-primary: #FFFFFF;
--color-accent: #D73A41;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E0F13;
--color-surface: #18191E;
--color-border: #2B2E35;
--color-text: #FBFBFD;
--color-muted: #8D8D8F;
--color-primary: #316EE9;
--color-on-primary: #FFFFFF;
--color-accent: #D73A41;
--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 #2A2E3A |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #3D7BF7 | adjusted for contrast · from #3D7BF7 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #E5484D | adjusted for contrast · from #E5484D |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.11:1 | AAA pass 4.5:1 | |
| Text on surface | 12.12:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.91:1 | AA pass 4.5:1 | |
| Label on primary | 4.63:1 | AA pass 4.5:1 | |
| Label on accent | 4.59:1 | AA pass 4.5:1 | |
| Primary on background | 4.48:1 | AA Large pass 3:1 | |
| Accent on background | 4.45:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.53:1 | AAA pass 4.5:1 | |
| Text on surface | 16.98:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.78:1 | AA pass 4.5:1 | |
| Label on primary | 4.63:1 | AA pass 4.5:1 | |
| Label on accent | 4.59:1 | AA pass 4.5:1 | |
| Primary on background | 4.14:1 | AA Large pass 3:1 | |
| Accent on background | 4.17: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 | #FBFBFD (Text 1) | #3D7BF7 (Text 2) | #E5484D (Text 3) | #FFE58F (Text 4) | #2A2E3A (Text 5) |
|---|---|---|---|---|---|
| #FBFBFD | Same color | 3.78AA Large | 3.79AA Large | 1.21— | 13.11AAA |
| #3D7BF7 | 3.78AA Large | Same color | 1.00— | 3.14AA Large | 3.47AA Large |
| #E5484D | 3.79AA Large | 1.00— | Same color | 3.14AA Large | 3.46AA Large |
| #FFE58F | 1.21— | 3.14AA Large | 3.14AA Large | Same color | 10.87AAA |
| #2A2E3A | 13.11AAA | 3.47AA Large | 3.46AA Large | 10.87AAA | Same color |
Shades
Shades and tints (50–950)
