Gradient Color Picker
extract the color at any point of a CSS gradient
Interactive Gradient Color Picker — coming soon
In development. We're still building the interactive Gradient Color Picker. The guide below explains exactly what it does and how to use it. In the meantime, here are DevLab tools that already work in your browser:
Browse all working tools →Paste any linear, radial, or conic CSS gradient definition and click anywhere on the rendered preview to read the interpolated HEX or RGB value at that exact position. Useful when a designer hands you a gradient asset and you need the 40% stop color for a hover state: sampling linear-gradient(90deg, #1a1a2e, #e94560) at 40% returns the interpolated mix, not either declared endpoint. Scrubbing continuously along the preview lets you read every in-between value, which neither the DevTools gradient editor nor Figma exposes directly.
What is Gradient Color Picker?
The tool renders your CSS gradient in a preview strip and lets you sample the interpolated color at any horizontal position by clicking or scrubbing. It resolves multi-stop gradients including those with explicit midpoints, so linear-gradient(to right, #ff6b35 0%, #f7c59f 30%, #efefd0 100%) yields a distinct sampled value at every pixel across the strip, not just at the declared stops.
Chrome DevTools shows declared color stops inside the gradient swatch editor but does not expose the interpolated value between them. Figma behaves the same way. If you need the exact color at an arbitrary percentage of an existing gradient, both tools require manual canvas pixel inspection or eyedropper guesswork, which is what this tool replaces.
CSS gradient interpolation defaults to sRGB, which causes midpoints to appear noticeably darker or less saturated than either stop color, especially with complementary hue pairs. CSS Color Level 4 introduced in oklab and in oklch syntax to fix this, but the sampled color here reflects whatever interpolation mode the gradient string actually specifies, so a darkened midpoint is accurate browser behavior, not a sampling artifact.
When to use Gradient Color Picker
- Extract the exact mid-stop color from a designer's gradient token when you need a solid hex fallback for a text overlay.
- Verify that a brand gradient's 25% position matches the secondary brand color documented in the style guide.
- Debug why a two-stop transition looks muddy by sampling the midpoint and confirming sRGB interpolation is collapsing toward grey.
Frequently Asked Questions
Why does the color sampled at 50% look darker than either of my gradient stop colors?
Does this work with radial and conic gradients or only linear ones?
Why does the sampled color differ from what Figma or Photoshop shows for the same gradient stops?
Can I sample colors from a gradient that uses oklch, oklab, or display-p3 stop colors?
What does a bare color hint between two stops do to the sampled values near that position?
Related Tools
- CSS Gradient Generatorgenerate CSS linear, radial, and conic gradients visually · CSS
- Color Converterconvert between HEX, RGB, HSL, HSB, and CMYK color formats · Colors
- Color Palette Generatorgenerate harmonious color palettes from a base color · Colors
- Color Shades Generatorgenerate tints and shades of any color for design systems · Colors