Using Sweet Dreams (#ECCEE5) in Interface Design: Scale, Buttons and Dark Mode
A working design system from Sweet Dreams #ECCEE5: a 50 to 950 scale, button states with contrast, a dark-mode version, an accessible link color and the CSS to paste in.
Sweet Dreams (#ECCEE5) is a very light, muted pink. 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 Sweet Dreams
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 Sweet Dreams and moves only the lightness. The step closest to Sweet Dreams keeps its exact value.
| Step | Hex | Contrast on white | Best text on it |
|---|---|---|---|
| 50 | #F9F5F8 | 1.08:1 | #111111 |
| 100 | #F0E8EE | 1.20:1 | #111111 |
| 200 | #ECCEE5 | 1.44:1 | #111111 |
| 300 | #CEBAC9 | 1.82:1 | #111111 |
| 400 | #B298AC | 2.63:1 | #111111 |
| 500 | #987C92 | 3.72:1 | #111111 |
| 600 | #7F6679 | 5.14:1 | #FFFFFF |
| 700 | #665061 | 7.27:1 | #FFFFFF |
| 800 | #4D3C4A | 10.19:1 | #FFFFFF |
| 900 | #392B36 | 13.35:1 | #FFFFFF |
| 950 | #21171E | 17.41: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 Sweet Dreams itself, so the button stays in family.
| State | Background | Label | Label contrast |
|---|---|---|---|
| Default | #ECCEE5 | #111111 | 13.06:1 |
| Hover | #DFC3D8 | #111111 | 11.63:1 |
| Pressed | #D3B8CD | #111111 | 10.34:1 |
| Disabled | #F8EEF6 | #6B7280 | 4.27: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 Hatoba Pigeon (#A88CA2), which reaches 3 to 1 against a white page, the minimum for interface parts.
Dark mode
On a near-black page (#0F1115), Sweet Dreams reaches 13.07:1 (AAA). That is enough to use it directly as text, a link or an icon in dark mode.
Links and text
Sweet Dreams on white reaches only 1.44:1, which is not enough for text. For links and small headings use Vintage (#896F83), the closest shade that reaches 4.5 to 1, and keep Sweet Dreams itself for fills and large display type.
Surfaces and borders
Tints of Sweet Dreams make quiet surfaces that feel connected to the brand without competing with it. Snow (#FEFCFE) works as a card or page tint, and Snow (#FBF5FA) as a border or divider.
The CSS
:root {
--brand: #ECCEE5;
--brand-hover: #DFC3D8;
--brand-active: #D3B8CD;
--on-brand: #111111;
--brand-surface: #FEFCFE;
--brand-border: #FBF5FA;
--brand-text: #896F83;
--focus-ring: #A88CA2;
}
@media (prefers-color-scheme: dark) {
:root {
--brand: #ECCEE5;
--brand-text: #ECCEE5;
}
}A short checklist
- Use Sweet Dreams 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.