PreviewingGo to this paletteOpen in generator
Code
/* Amber Pharmacy — colorset.net */
:root {
--color-1: #FBF9F4;
--color-2: #D98324;
--color-3: #2A6F97;
--color-4: #EAD3B0;
--color-5: #26201A;
--color-bg: #FBF9F4;
--color-surface: #F2F0EB;
--color-border: #DAD7CF;
--color-text: #26201A;
--color-muted: #746C65;
--color-primary: #AF6400;
--color-on-primary: #FFFFFF;
--color-accent: #2A6F97;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #26201A;
--color-surface: #312B25;
--color-border: #494037;
--color-text: #FBF9F4;
--color-muted: #989692;
--color-primary: #D98324;
--color-on-primary: #26201A;
--color-accent: #377BA4;
--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 #D98324 | from palette · color 2 |
| On primary | derived | derived |
| Accent | from palette · color 3 | adjusted for contrast · from #2A6F97 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.31:1 | AAA pass 4.5:1 | |
| Text on surface | 14.14:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.90:1 | AA pass 4.5:1 | |
| Label on primary | 4.52:1 | AA pass 4.5:1 | |
| Label on accent | 5.50:1 | AA pass 4.5:1 | |
| Primary on background | 4.30:1 | AA Large pass 3:1 | |
| Accent on background | 5.23:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.31:1 | AAA pass 4.5:1 | |
| Text on surface | 13.28:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.45:1 | AA pass 4.5:1 | |
| Label on primary | 5.54:1 | AA pass 4.5:1 | |
| Label on accent | 4.63:1 | AA pass 4.5:1 | |
| Primary on background | 5.54:1 | AA pass 3:1 | |
| Accent on background | 3.48: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 | #FBF9F4 (Text 1) | #D98324 (Text 2) | #2A6F97 (Text 3) | #EAD3B0 (Text 4) | #26201A (Text 5) |
|---|---|---|---|---|---|
| #FBF9F4 | Same color | 2.76— | 5.23AA | 1.38— | 15.31AAA |
| #D98324 | 2.76— | Same color | 1.89— | 2.00— | 5.54AA |
| #2A6F97 | 5.23AA | 1.89— | Same color | 3.78AA Large | 2.93— |
| #EAD3B0 | 1.38— | 2.00— | 3.78AA Large | Same color | 11.08AAA |
| #26201A | 15.31AAA | 5.54AA | 2.93— | 11.08AAA | Same color |
Shades
Shades and tints (50–950)
