BSZ Colored Latent Image XL
An empty latent with a color baked in
- LATENT
ComfyUI's EmptyLatentImage gives you a zero-filled latent, which for the SDXL VAE decodes to a dark gray nothing. BSZ Colored Latent Image XL is the same idea with a twist: an empty latent whose channels are pre-filled with an actual color, at a strength you choose. It's a starting point for sampling that biases the whole image toward that color from step one.
Why you'd reach for it
The classic use is color steering. Feed a warm-tinted latent to the KSampler and your whole render comes out warmer, without a single color node after decode. At low denoise it's a cheap way to tint an image; at full denoise it biases the mood of a generation. It's also a great first experiment for anyone poking at the pack's latent-manipulation nodes, because it's the simplest one - no VAE encode involved, just constants.
How it works
No VAE needed, no encode pass. The node fills the four latent channels with hardcoded values that were derived from the SDXL VAE's actual latent space - the author baked in the channel values that correspond to eight colors:
color- a dropdown: black, white, red, green, blue, cyan, magenta, yellow.strength- how much of the color to apply, 0.0 to 1.0. Zero is effectively the standard empty latent; 1.0 is the pure baked color.width,height,batch_size- same asEmptyLatentImage, defaults 1024×1024.
Output: a LATENT you feed straight into the sampler.
That "derived from the SDXL VAE" bit is the whole ballgame. These aren't random numbers - they're channel offsets that the SDXL VAE actually interprets as those colors. Which is also the node's biggest caveat: it is SDXL-specific, full stop. The constants mean nothing to an SD 1.5 VAE or a Flux VAE, so this isn't a node you reach for outside the XL ecosystem.
Install
Part of Beinsezii's bsz-cui-extras:
cd ComfyUI/custom_nodes
git clone https://github.com/Beinsezii/bsz-cui-extras
restart, or install via ComfyUI Manager. Pure Python, no dependencies.
Notes
If you want a color that's not in the eight, the pack's BSZ Latent RGBA Image is the arbitrary-color version - but it needs a VAE and does a real encode, which is why the author keeps this eight-color shortcut around. One thing worth knowing before you rely on it: a colored latent is a strong prior. At full denoise a 1.0-strength red latent will fight your prompt for control of the image's palette. Most people who use this seriously keep strength low-ish and let the sampler's own behavior do the work.
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| color | COMBO | 8 options: black, white, red, green, blue, cyan, +2 | |
| strength | FLOAT | 0.500–1 | — |
| width | INT | 102416–16384 | — |
| height | INT | 102416–16384 | — |
| batch_size | INT | 11–4096 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| LATENT | LATENT | — |