Color Desaturation
Desaturate images with precision control using luminosity, average, or lightness methods. Supports channel-selective and partial desaturation.
Drop an image here or click to browse
Supports PNG, JPG, WebP, BMP, GIF • Max 4096×4096
About
Color desaturation reduces chromatic intensity in an image by interpolating each pixel between its original RGB value and a computed gray equivalent. The gray value depends on the method: the Luminosity method applies ITU-R BT.709 perceptual weights (L = 0.2126R + 0.7152G + 0.0722B), producing results that match human brightness perception. The Average method treats all channels equally. The Lightness method uses the midrange of channel extremes. Choosing the wrong method produces flat, muddy tones or crushed highlights. This tool processes pixels natively in the browser using the Canvas API with Web Worker acceleration.
Channel-selective desaturation isolates hue ranges (Reds, Yellows, Greens, Cyans, Blues, Magentas) and removes saturation only from selected families. This technique is standard in portrait retouching and product photography where skin tones or brand colors must remain vivid while the background loses chroma. The feathering algorithm applies a cosine falloff at hue boundaries to prevent hard color transitions. Note: results approximate professional software behavior but do not replicate ICC color-managed workflows.
Formulas
The core desaturation operation is a linear interpolation between the original color and its computed gray value, controlled by an amount parameter a ranging from 0 (original) to 1 (fully desaturated).
where Cout is the output channel value, Cin is the original channel value, a is the desaturation amount (0 - 1), and gray is the grayscale equivalent computed by the selected method.
For channel-selective desaturation, the hue angle H is computed from RGB. A mask weight w is derived using cosine feathering across the target hue range with a configurable feather width f (default 15ยฐ). The per-pixel desaturation amount becomes a โ w.
Reference Data
| Method | Formula | Perceptual Accuracy | Speed | Best Use Case |
|---|---|---|---|---|
| Luminosity (BT.709) | 0.2126R + 0.7152G + 0.0722B | High | Fast | Photography, print |
| Luminosity (BT.601) | 0.299R + 0.587G + 0.114B | Medium-High | Fast | Video, legacy systems |
| Average | (R + G + B) รท 3 | Low | Fastest | Artistic, flat look |
| Lightness (HSL) | (max + min) รท 2 | Medium | Fast | Illustration, design |
| Desaturate (HSL) | S โ 0 | Medium | Medium | Precise hue control |
| Channel-selective | Per-hue S reduction | High | Slower | Portrait retouching |
| Single channel (R) | gray = R | Very Low | Fastest | Forensic, infrared look |
| Single channel (G) | gray = G | Medium | Fastest | Landscape, B&W film sim |
| Single channel (B) | gray = B | Very Low | Fastest | Dramatic sky effects |
| Decompose (Value) | max(R,G,B) | Low | Fastest | Bright, washed look |
| Luma (sRGB linear) | Linearize โ BT.709 โ gamma | Highest | Slow | Color-accurate archival |
| RMS | โ(R2 + G2 + B2) รท 3 | Medium | Medium | HDR tone mapping |