Yellow Color Palette

Yellow Color Palette built around #FFFF00, a light warm yellow anchor (WCAG contrast 1.07:1 against white). The set combines a light tint + a deep shade + a softened complement + a neutral ground so any palette position has a text-safe pairing.

yellowbrightwarmcheerful
#FFFF00
#FFFFA5
#7B7F00
#3939C6
#DDDD11
#ffff00 #ffffa5 #7b7f00 #3939c6 #dddd11
#FFFF00 #FFFFA5 #7B7F00 #3939C6 #DDDD11

Semantic roles

Assigned deterministically: lightest = background, darkest = text, most saturated = primary.

background#FFFFA5
surface#FFFF00
text#3939C6
text-muted#7B7F00
primary#FFFF00
secondary#7B7F00
accent#DDDD11

CSS variables

:root {
  --background: #ffffa5;
  --surface: #ffff00;
  --text: #3939c6;
  --text-muted: #7b7f00;
  --primary: #ffff00;
  --secondary: #7b7f00;
  --accent: #dddd11;
}
Preview in UIs →

Accessibility matrix

Text color (rows) on background (columns). Green = WCAG AA pass for normal text (≥4.5:1).

Text \ BG#FFFF00#FFFFA5#7B7F00#3939C6#DDDD11
#FFFF00
1.0
1.0
4.0
7.6
1.4
#FFFFA5
1.0
1.0
4.1
7.8
1.4
#7B7F00
4.0
4.1
1.0
1.9
3.0
#3939C6
7.6
7.8
1.9
1.0
5.6
#DDDD11
1.4
1.4
3.0
5.6
1.0

Under deuteranopia

Machado et al. (2009) simulation, severity 1.0 — approximation, not a medical tool.

Colors in this palette

Similar palettes

FAQ

How do I use the yellow color palette in CSS?

Copy the CSS variables below into :root and use var(--primary), var(--background) etc. Full palette: #FFFF00, #FFFFA5, #7B7F00, #3939C6, #DDDD11.

Do these colors pass accessibility checks?

See the WCAG matrix on this page: every text-on-background pairing with ratio ≥ 4.5 passes AA for normal text; ≥ 3 passes AA for large text and UI components.