PreviewingGo to this paletteOpen in generator
Code
/* Cocoa Nib Wrapper — colorset.net */
:root {
--color-1: #F6E8DE;
--color-2: #6A3820;
--color-3: #9C613F;
--color-4: #D87880;
--color-5: #31170E;
--color-bg: #F6E8DE;
--color-surface: #F9F0EA;
--color-border: #E0CFC3;
--color-text: #31170E;
--color-muted: #7F6259;
--color-primary: #B65A63;
--color-on-primary: #FFFFFF;
--color-accent: #6A3820;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #31170E;
--color-surface: #3D2219;
--color-border: #523830;
--color-text: #F6E8DE;
--color-muted: #9B8E85;
--color-primary: #D87880;
--color-on-primary: #31170E;
--color-accent: #9B654C;
--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 #9C613F | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #9C613F |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.91:1 | AAA pass 4.5:1 | |
| Text on surface | 14.83:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.62:1 | AA pass 4.5:1 | |
| Label on primary | 4.53:1 | AA pass 4.5:1 | |
| Label on accent | 9.55:1 | AAA pass 4.5:1 | |
| Primary on background | 3.78:1 | AA Large pass 3:1 | |
| Accent on background | 7.96:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.91:1 | AAA pass 4.5:1 | |
| Text on surface | 12.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.24:1 | AA pass 4.5:1 | |
| Label on primary | 5.49:1 | AA pass 4.5:1 | |
| Label on accent | 4.82:1 | AA pass 4.5:1 | |
| Primary on background | 5.49:1 | AA pass 3:1 | |
| Accent on background | 3.46: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 | #F6E8DE (Text 1) | #6A3820 (Text 2) | #9C613F (Text 3) | #D87880 (Text 4) | #31170E (Text 5) |
|---|---|---|---|---|---|
| #F6E8DE | Same color | 7.96AAA | 4.18AA Large | 2.53— | 13.91AAA |
| #6A3820 | 7.96AAA | Same color | 1.91— | 3.15AA Large | 1.75— |
| #9C613F | 4.18AA Large | 1.91— | Same color | 1.65— | 3.33AA Large |
| #D87880 | 2.53— | 3.15AA Large | 1.65— | Same color | 5.49AA |
| #31170E | 13.91AAA | 1.75— | 3.33AA Large | 5.49AA | Same color |
Shades
Shades and tints (50–950)
