RGB Channel
Per-channel gain for white balance
- src_image
- image
RGB Channel lets you scale the red, green, and blue channels of an image independently. It's the node you reach for when a generation comes out with a color cast - too warm, too green, too blue - and you want to correct the white balance instead of just cranking saturation and making the cast worse. Boost blue and cut red to cool a shot down; do the opposite to warm it; nudge green to fight a magenta tint. It's basic channel-mixing, and it's more useful than it looks.
It's part of ComfyUI_Mira, mirabarukaso's personal utility pack, in the image-adjustment family (Saturation, HUE, Contrast, Brightness, Sharpness, Gamma, Tone Curve, Grayscale). All of them daisy-chain - one node's image output into the next's src_image - so RGB Channel usually sits in a small color-grade stack rather than alone.
How it works
Each of the three inputs is a multiplier on that channel's values. 1 leaves the channel unchanged. Below 1 pulls a channel down (less of that color), above 1 pushes it up (more). The range is 0 to 5, but you almost never leave the neighborhood of 1 - white balance corrections are small, like Red 0.95 / Blue 1.08. Big values blow the image out into a single color tint, which is occasionally the point but usually a mistake.
Because you're moving channels relative to each other, this is genuine color correction, not a hue rotation. It shifts the balance of the image, which is exactly what fixes a cast.
The inputs and outputs that matter
- src_image - the image to correct.
- Red / Green / Blue - per-channel multipliers, 0 to 5, each defaulting to 1 (neutral). Move them relative to each other.
- image (output) - the corrected image, into your next node.
The mental model: to remove a color cast, pull that channel down or push the opposite ones up. Too orange? Lower Red a touch, raise Blue a touch.
Installing it
ComfyUI Manager: search ComfyUI_Mira, install, restart. Or manually:
cd ComfyUI/custom_nodes && git clone https://github.com/mirabarukaso/ComfyUI_Mira.git
then restart. If it errors on load, run pip install -r requirements.txt in the ComfyUI_Mira folder. It's under Mira/Util/Image.
Common issues
- Small moves only. White balance lives within a few percent of 1. If you're setting a channel to 3, you're not correcting, you're tinting.
- This is the right tool for casts. People try to fix a color cast with Saturation or HUE and make it worse. Casts are a channel-balance problem - fix them here, then adjust saturation to taste.
- Watch the highlights. Pushing a channel above 1 can clip bright areas to pure color. If skies or speculars go flat, you've overdriven a channel.
- Chain order. Correct the cast early in your stack, before contrast and sharpening, so later steps aren't amplifying a tint you're about to remove.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| src_image | IMAGE | — | |
| Red | FLOAT | 1.000–5 | — |
| Green | FLOAT | 1.000–5 | — |
| Blue | FLOAT | 1.000–5 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |