Moccasin & Chocolate Brown
A pastel palette of 3 colors from the Afoli gallery: #432C15, #CBD3EC, #F9EDBF.
Open in the Afoli palette generator →
#432C15 · Dark Slate Gray#CBD3EC · Light Gray#F9EDBF · Moccasin
Colors in this palette
| HEX | RGB | HSL | CMYK | Nearest named color |
|---|---|---|---|---|
| #432C15 | rgb(67, 44, 21) | hsl(30, 52%, 17%) | 0, 34, 69, 74 | ≈ Dark Slate Gray |
| #CBD3EC | rgb(203, 211, 236) | hsl(225, 46%, 86%) | 14, 11, 0, 7 | ≈ Light Gray |
| #F9EDBF | rgb(249, 237, 191) | hsl(48, 83%, 86%) | 0, 5, 23, 2 | ≈ Moccasin |
Preview in a UI
A heading in the primary color
Body text on the background, as a page or an app would show it.
Text on a card · #432C15
ButtonContrast of the UI pairs
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Body text on background | 11.12 : 1 | 88 | Pass |
| Text on a card | 8.74 : 1 | 74 | Pass (WCAG) |
| Button label | 11.12 : 1 | -91 | Pass |
| Heading on background | 11.12 : 1 | 88 | Pass |
| Link on a card | 8.74 : 1 | 74 | Pass (WCAG) |
| Accent badge on a card | 8.74 : 1 | 74 | Pass |
| Primary control on background | 11.12 : 1 | 88 | Pass |
CSS variables
:root {
--dark-slate-gray: #432C15;
--light-gray: #CBD3EC;
--moccasin: #F9EDBF;
}
How this palette was made
Afoli generated it from a fixed seed and kept it because it passes the gallery rules: every color is clearly distinct, one pair reaches 4.5 : 1 for text and the colors span a wide light-to-dark range. It is free to use (CC0).
Frequently asked questions
How do I use the Moccasin & Chocolate Brown palette in CSS?
Copy the CSS variables on this page, or open the palette in the Afoli generator to export Tailwind, JSON, SVG, PNG or Adobe ASE.
Which colors of Moccasin & Chocolate Brown can I use for text?
#432C15 text on #F9EDBF reaches 11.12 : 1, the strongest pair of the palette.
Similar palettes
- Chocolate Brown & Pale Goldenrod
- Light Blue Grey & Charcoal Grey
- Sand & Charcoal
- Light Sage & Dark Brown
- Pink & Charcoal
- Powder Pink & Chocolate Brown
Sources and licences
- Afoli palette gallery — own data, CC0 1.0 (scripts/color_palettes_build.mjs)
- CSS named colors (W3C) · xkcd color survey (CC0)