First things first: yellow and legibility
Pure yellow, #FFFF00, is the lightest color on the spectrum after white. In practice, that means two things. First, black text on yellow scores about 19.6:1, one of the most legible pairs you can get, which is why yellow and black dominate warning signs, construction tape and safety signage. Second, yellow on white (or white text on yellow) comes in at just 1.07:1, which is practically invisible.
Never use yellow as a text color on a light background. If your interface needs "yellow text," darken it toward amber or mustard and check it in the contrast checker. The contrast and accessibility guide explains the AA and AAA levels.
Meaning and perception
Yellow tends to evoke sunshine, joy, warmth and optimism, but also attention and caution. In the US it's the color of school buses and taxis in many cities, which adds to its "look here" role. In parts of Asia it was historically associated with royalty, while in some European and Latin American countries yellow flowers carry a sense of farewell. Too much yellow tires the eyes, and that goes for screens as much as walls.
Recommended pairings
| Color | Effect |
|---|---|
Gray #808080 | Balances yellow's energy; a modern pairing in interiors. |
Navy blue #000080 | Strong contrast, but more refined than black. |
Black #000000 | Maximum visibility, the language of signage. |
Purple #800080 | The complement on the traditional wheel; vivid and bold. |
Where yellow shines
In branding, yellow suits approachable retail and food brands, especially as an accent next to a dark shade. In UI, it's the traditional warning color, sitting between success green and error red. In fashion, pure yellow is tricky near the face; warmer shades like mustard and metallic ones like gold are easier to wear. In print, it's one of the colors that survives conversion best: #FFFF00 becomes cmyk(0%, 0%, 100%, 0%), essentially process yellow itself.