PreviewingGo to this paletteOpen in generator
Code
/* Riviera — colorset.net */
:root {
--color-1: #F7F6F0;
--color-2: #1E5AA8;
--color-3: #F2C14E;
--color-4: #D8DFEA;
--color-5: #142033;
--color-bg: #F7F6F0;
--color-surface: #EEEDE7;
--color-border: #D6D4CB;
--color-text: #142033;
--color-muted: #5E6C83;
--color-primary: #1E5AA8;
--color-on-primary: #FFFFFF;
--color-accent: #946F00;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #142033;
--color-surface: #1F2B3F;
--color-border: #344156;
--color-text: #F7F6F0;
--color-muted: #95948F;
--color-primary: #3A75C6;
--color-on-primary: #FFFFFF;
--color-accent: #F2C14E;
--color-on-accent: #142033;
}
}
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 #1E5AA8 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #1E5AA8 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.10:1 | AAA pass 4.5:1 | |
| Text on surface | 13.94:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.91:1 | AA pass 4.5:1 | |
| Label on primary | 6.81:1 | AA pass 4.5:1 | |
| Label on accent | 4.63:1 | AA pass 4.5:1 | |
| Primary on background | 6.29:1 | AA pass 3:1 | |
| Accent on background | 4.28:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.10:1 | AAA pass 4.5:1 | |
| Text on surface | 13.14:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.38:1 | AA pass 4.5:1 | |
| Label on primary | 4.63:1 | AA pass 4.5:1 | |
| Label on accent | 9.74:1 | AAA pass 4.5:1 | |
| Primary on background | 3.54:1 | AA Large pass 3:1 | |
| Accent on background | 9.74: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 | #F7F6F0 (Text 1) | #1E5AA8 (Text 2) | #F2C14E (Text 3) | #D8DFEA (Text 4) | #142033 (Text 5) |
|---|---|---|---|---|---|
| #F7F6F0 | Same color | 6.29AA | 1.55— | 1.24— | 15.10AAA |
| #1E5AA8 | 6.29AA | Same color | 4.06AA Large | 5.08AA | 2.40— |
| #F2C14E | 1.55— | 4.06AA Large | Same color | 1.25— | 9.74AAA |
| #D8DFEA | 1.24— | 5.08AA | 1.25— | Same color | 12.20AAA |
| #142033 | 15.10AAA | 2.40— | 9.74AAA | 12.20AAA | Same color |
Shades
Shades and tints (50–950)
