Skip to content

Mix and interpolate

mix() blends in the sRGB values you see in a hex string. interpolate() converts to linear light first, blends there, and converts back. Halfway between black and white, mix() gives #808080 and interpolate() gives #BCBCBC — a difference of 60 in every channel, which is why the two strips below do not line up.