Amber vs Yellow for Warning States

Compare amber and yellow for warning banners, alerts, and cautionary UI elements.

Amber

#f59e0b

Golden orange, readable

Yellow

#eab308

Pure yellow, bright

Side-by-Side Comparison

AspectAmberYellow
ReadabilityGood contrast as backgroundPoor contrast on white
Severity perceptionModerate warning, take noteMild caution, informational
AccessibilityPasses WCAG for large textFails most contrast checks
Use caseAPI deprecation, storage limitsNew feature highlight, tip banners
Best ForWarning banners, deprecation noticesHighlights, attention markers

Our Recommendation

Amber for accessible warning states. Yellow only for decorative highlights with managed contrast.

Tailwind Classes

Amber

Background: bg-amber-500

Text: text-amber-500

Border: border-amber-500

Yellow

Background: bg-yellow-500

Text: text-yellow-500

Border: border-yellow-500

#warning#amber#yellow#status#comparison