Gray and Yellow

#808080 · oklch(59.99% 0 0)
#FFFF00 · oklch(96.8% 0.211 109.8)
hue separation 60° · direct contrast 3.68:1 · warm + cool

Why they work: neutral discipline plus one optimistic signal color.

Combination sets

The classic split

Gray and Yellow with a light tint of gray, a deep shade of yellow and white for breathing room.

808080
FFFF00
C4C4C4
808000
FFFFFF
Gray — primary · Yellow — secondary · Light tint (surfaces) · Deep shade (text/footer) · White (space)

Dark mode

Both anchors survive on dark: Yellow as the highlight, Gray as the accent, and two intermediate surfaces for elevation.

16161D
232329
808080
FFFF00
F5F5F4
Base surface · Elevated surface · Gray — accent · Yellow — highlight · Primary text

Soft & light

Both anchors reduced to tints for airy sections, with the full-strength colors kept for buttons and links.

E7E7E7
FFFCFC
808080
FFFF00
EEEEED
Gray wash · Yellow wash · Gray — full · Yellow — full · Neutral page

60 / 30 / 10 UI set

A practical interface split: neutral ~60%, gray ~30% for structure, yellow ~10% for calls to action.

F3EBE2
E5DED6
808080
FFFF00
000000
Neutral base (60%) · Soft border/surface · Gray (30%) · Yellow CTA (10%) · Text color

Gradient bridge

The direct perceptual path from gray to yellow — use for hero sections, charts and progress states.

808080
A39E72
C2BD60
E1DE46
FFFF00
Gray — start · Bridge step · Bridge step · Bridge step · Yellow — end

Contrast data

ForegroundBackgroundRatioAAAAA
#808080#FFFF003.68:1
#FFFF00#8080803.68:1
#808080#FFFFFF3.95:1
#808080#0000005.32:1
#FFFF00#FFFFFF1.07:1
#FFFF00#00000019.56:1
#16161D#EDA6768.84:1
Open in palette generator →Preview on UI scenes →Open in contrast checker →

Related combinations

FAQ

Do gray and yellow go together?

Yes — neutral discipline plus one optimistic signal color. Their hues are 60° apart on the color wheel and the direct pair contrast is 3.68:1. The sets on this page show exactly how to balance them (warm + cool).

What text color works on gray and yellow?

On gray use #000000 text (5.32:1); on yellow use #000000 (19.56:1). Both pass WCAG AA for normal text.

What are the exact color codes?

Gray: #808080 — OKLCH oklch(59.99% 0 0). Yellow: #FFFF00 — OKLCH oklch(96.8% 0.211 109.8).