# Two-Color Ramp Mixer > Mix two colors into an sRGB or linear-light ramp for drawing and pixel art. Interpolate 2–24 opaque colors between two HEX endpoints. Compare encoded sRGB and linear-light mixing, then download HEX, GIMP GPL, JASC-PAL and CSS palettes for your drawing workflow. Part of usefulweb.app (https://usefulweb.app/). Results are deterministic calculations from the inputs and the listed assumptions; the API returns exactly what the web page shows. ## Use it - Human interface: https://fliplinecolorramp.usefulweb.app/ (interactive tool at https://fliplinecolorramp.usefulweb.app/tool) - JSON API: POST https://fliplinecolorramp.usefulweb.app/api/v1/calculate with a JSON object of inputs (schema: https://fliplinecolorramp.usefulweb.app/api/v1/tool) - OpenAPI: https://fliplinecolorramp.usefulweb.app/openapi.json - MCP (Streamable HTTP): https://fliplinecolorramp.usefulweb.app/mcp - tool `flipline_color_ramp` ## Inputs - from (text): First HEX color - to (text): Second HEX color - count (integer): Ramp colors - space (select): Mixing space ## Method - Sample progress at index/(count-1), including both endpoints. Interpolate RGB components independently. - Encoded sRGB mixes channel values directly. Linear-light mixing decodes the sRGB transfer function, interpolates, then re-encodes and rounds to eight bits. - Order and duplicate colors are preserved in HEX, GPL, JASC-PAL and CSS. This is additive color interpolation, not physical pigment mixing.