PreviewingGo to this paletteOpen in generator
Code
/* Lapis Courtyard — colorset.net */
:root {
--color-1: #F2F0E8;
--color-2: #1E3A8A;
--color-3: #0F7B6C;
--color-4: #C98B2B;
--color-5: #111A33;
--color-bg: #F2F0E8;
--color-surface: #F8F7F2;
--color-border: #DAD7CC;
--color-text: #111A33;
--color-muted: #626C84;
--color-primary: #A36B00;
--color-on-primary: #FFFFFF;
--color-accent: #1E3A8A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #111A33;
--color-surface: #1B253F;
--color-border: #323B51;
--color-text: #F2F0E8;
--color-muted: #908E87;
--color-primary: #C98B2B;
--color-on-primary: #111A33;
--color-accent: #4A6CC1;
--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 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #C98B2B | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #0F7B6C |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.09:1 | AAA pass 4.5:1 | |
| Text on surface | 16.06:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.60:1 | AA pass 4.5:1 | |
| Label on primary | 4.51:1 | AA pass 4.5:1 | |
| Label on accent | 10.36:1 | AAA pass 4.5:1 | |
| Primary on background | 3.95:1 | AA Large pass 3:1 | |
| Accent on background | 9.08:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.09:1 | AAA pass 4.5:1 | |
| Text on surface | 13.31:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.25:1 | AA pass 4.5:1 | |
| Label on primary | 5.91:1 | AA pass 4.5:1 | |
| Label on accent | 4.99:1 | AA pass 4.5:1 | |
| Primary on background | 5.91:1 | AA pass 3:1 | |
| Accent on background | 3.45: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 | #F2F0E8 (Text 1) | #1E3A8A (Text 2) | #0F7B6C (Text 3) | #C98B2B (Text 4) | #111A33 (Text 5) |
|---|---|---|---|---|---|
| #F2F0E8 | Same color | 9.08AAA | 4.52AA | 2.55— | 15.09AAA |
| #1E3A8A | 9.08AAA | Same color | 2.01— | 3.56AA Large | 1.66— |
| #0F7B6C | 4.52AA | 2.01— | Same color | 1.77— | 3.34AA Large |
| #C98B2B | 2.55— | 3.56AA Large | 1.77— | Same color | 5.91AA |
| #111A33 | 15.09AAA | 1.66— | 3.34AA Large | 5.91AA | Same color |
Shades
Shades and tints (50–950)
