What color do yellow and gray make?
Mixed as paint, yellow and gray make a yellow. Change the ratio, switch to light or CSS mixing, and copy the result.
Yellow and gray make yellow
Mixed as paint, yellow and gray make a yellow (#B6B235). As light on a screen, they make a light yellow (#FFDE7E), and blended in CSS with OKLCH they give a yellow (#C1AF6B).
yellow
#B6B235
As paint
Pigments absorb light, so every color you add takes some away. This is what you get on a palette or canvas.
light yellow
#FFDE7E
As light
Colored lights add up, as on a screen or stage. Mixes get brighter, not darker.
yellow
#C1AF6B
In CSS (OKLCH)
What color-mix(in oklch, …) returns for an even mix in the browser.
Mixing yellow and gray in different ratios
The ratio decides which color leads. These are paint mixes, measured in equal-sized parts.
3:1 · #CEC225
3 yellow : 1 gray, yellow
2:1 · #C6BD2B
2 yellow : 1 gray, yellow
1:1 · #B6B235
1 yellow : 1 gray, yellow
1:2 · #A7A73F
1 yellow : 2 gray, olive
1:3 · #9FA146
1 yellow : 3 gray, olive
Making the mix lighter or darker
Add white for tints and black for shades. Each step adds 20% more of it to the even yellow and gray mix.
With white
#C3C047
20%
#CECD5B
40%
#D8D972
60%
#E4E694
80%
With black
#A09E39
20%
#898A3B
40%
#71723A
60%
#515235
80%
Need a full scale for a UI instead? The shade generator builds evenly spaced, accessible shades from any color.
More mixes with yellow
More mixes with gray
Mixing yellow and gray FAQ
Mixed as paint, yellow and gray make a yellow (#B6B235). As light on a screen, they make a light yellow (#FFDE7E), and blended in CSS with OKLCH they give a yellow (#C1AF6B).
Light adds up instead of absorbing, so yellow and gray light make a light yellow (#FFDE7E). That is why screens can show bright yellows from red and green light, while the same paints would turn brown.
Change the ratio. Three parts yellow to one part gray gives a yellow (#CEC225), while one part yellow to three parts gray gives an olive (#9FA146). To lighten the result add white, and to darken it add a little black.
Use color-mix(in oklch, #FCD200 50%, #8A8A8A 50%), which gives #C1AF6B. OKLCH keeps the middle of the mix bright, while mixing in sRGB tends to turn it gray.