This module moves from museum notes to a Lantern Lane Night Market flyer. The panel needs light text, a dark surface, and a small accent visitors can spot quickly.
In .flyer, background-color: #172554 paints the panel navy. color: #fff7ed sets cream text that its children inherit unless they have their own color rule. The .badge rule gives “Free entry” a coral background and navy text. Background and text colors are separate choices.
A hex color starts with #. In a six-digit code, the pairs describe red, green, and blue amounts. You can also use named colors such as navy, or rgb() values. The tasks give exact colors so you can compare your result. Color alone should not communicate a warning or selected state: keep a text label or another visible cue too. For normal text, WCAG AA asks for at least 4.5:1 contrast against its background (3:1 for qualifying large text). Check the actual text/background pair rather than trusting that a color is “bright.”
The sizing and centering rules are supplied. You will learn Grid and the sizing functions later; leave those rules alone here.
Run and find the cream title, pale-blue details, and coral badge. Change only the badge's background-color to white, then Run again. Its words stay navy while its surface changes. Restore #fb7185 before the ticket exercise.
MDN's color property reference explains the available color formats.
Find the selector that matches the part of the flyer you want to recolor.