Interpolate colors in a selected space to create intermediate swatches.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Color channels are interpolated between two or more colors in the selected color space, with hue direction and weighting controlling intermediate stops. Mixing in gamma-encoded RGB differs from mixing in a linear or perceptual space.
Input1: #FF0000 Input2: #0000FF
Original: #FF0000 + #0000FF Modified: Mixed (50%): #800080 RGB: rgb(128, 0, 128)
Palette generation, gradients, and design-token blending mix colors.