Using Pizza (#BF8D3C) in Interface Design: Scale, Buttons and Dark Mode
A working design system from Pizza #BF8D3C: a 50 to 950 scale, button states with contrast, a dark-mode version, an accessible link color and the CSS to paste in.
Pizza (#BF8D3C) is a medium, moderately saturated yellow. As an interface color it has a clear personality: it is light enough that dark labels read better than white ones, which makes it better as a surface, a highlight or a data color than as a button. This guide shows how to build a working interface from it: a full scale, every button state, a dark-mode version, a link color that passes, and the CSS to paste in.
A scale built from Pizza
A single color is not enough for an interface. You need lighter steps for surfaces and borders and darker steps for text and hover states. This 50 to 950 scale keeps the hue and saturation of Pizza and moves only the lightness. The step closest to Pizza keeps its exact value.
| Step | Hex | Contrast on white | Best text on it |
|---|---|---|---|
| 50 | #FCF6ED | 1.07:1 | #111111 |
| 100 | #F6E9D7 | 1.19:1 | #111111 |
| 200 | #EFD7B5 | 1.39:1 | #111111 |
| 300 | #DFBB86 | 1.81:1 | #111111 |
| 400 | #BF8D3C | 2.96:1 | #111111 |
| 500 | #AD7C28 | 3.69:1 | #111111 |
| 600 | #92650E | 5.13:1 | #FFFFFF |
| 700 | #735013 | 7.27:1 | #FFFFFF |
| 800 | #583C09 | 10.16:1 | #FFFFFF |
| 900 | #422B03 | 13.30:1 | #FFFFFF |
| 950 | #271700 | 17.37:1 | #FFFFFF |
Button states
Interactive elements need to look different when you hover, press and disable them, and each state still has to be readable. These values are made from Pizza itself, so the button stays in family.
| State | Background | Label | Label contrast |
|---|---|---|---|
| Default | #BF8D3C | #111111 | 6.37:1 |
| Hover | #B48538 | #111111 | 5.71:1 |
| Pressed | #AB7E35 | #111111 | 5.18:1 |
| Disabled | #E9DDD1 | #6B7280 | 3.62:1 |
Disabled controls are exempt from WCAG contrast rules, but they still need to be recognizable, so the label is kept dark enough to read. For keyboard focus, use an outline of Pizza (#BC8A39), which reaches 3 to 1 against a white page, the minimum for interface parts.
Dark mode
On a near-black page (#0F1115), Pizza reaches 6.38:1 (AA). That is enough to use it directly as text, a link or an icon in dark mode.
Links and text
Pizza on white reaches only 2.96:1, which is not enough for text. For links and small headings use Puma (#9C6C0F), the closest shade that reaches 4.5 to 1, and keep Pizza itself for fills and large display type.
Surfaces and borders
Tints of Pizza make quiet surfaces that feel connected to the brand without competing with it. Snow (#FCFAF8) works as a card or page tint, and Salt (#F3ECE6) as a border or divider.
The CSS
:root {
--brand: #BF8D3C;
--brand-hover: #B48538;
--brand-active: #AB7E35;
--on-brand: #111111;
--brand-surface: #FCFAF8;
--brand-border: #F3ECE6;
--brand-text: #9C6C0F;
--focus-ring: #BC8A39;
}
@media (prefers-color-scheme: dark) {
:root {
--brand: #BF8D3C;
--brand-text: #BF8D3C;
}
}A short checklist
- Use Pizza for the one action you most want people to take.
- Put #111111 text on it and check that the ratio stays above 4.5 to 1.
- Use the scale for hover, pressed, border and surface colors rather than inventing new ones.
- Define a separate dark-mode value and test it on a dark page.
- Never use the color as the only signal: add an icon, a label or an underline.