LayerStyle: ColorOverlay V2
ColorOverlay V2
- background_image
- layer_image
- layer_mask
- image
If you've ever used the "Color Overlay" layer style in Photoshop, this is that, ported. It floods a solid color onto a layer - but blended, not painted, so instead of a flat fill you get a tint that respects the underlying image. Recoloring a logo, tinting a garment, dropping a duotone wash over an element, unifying the palette of a composite: this is the fast way. It's part of the pack's LayerStyle family, which recreates Photoshop's layer-effects panel node by node.
The mechanism: you give it a color, and that color is blended over the layer_image according to the blend_mode and opacity, then the result is composited onto the background_image. Because it's a blend and not a paint-bucket fill, the mode you choose completely changes the look - multiply tints while keeping the shadows and texture underneath, overlay tints while boosting contrast, color (the mode) swaps hue while preserving the original luminance, which is the classic "recolor this object but keep its shading" trick. normal at full opacity is a flat fill and usually not what you want.
There are two image inputs - background_image and layer_image - and the common setup for tinting a single photo is to feed the same image into both: the layer gets the color overlay, the background is what shows through the blend. When they differ, you're overlaying color onto one layer and compositing it over another, which is the more Photoshop-accurate use.
The inputs that matter: color is the fill, set by hex string (defaults to a warm #FFBF30). blend_mode is the full 30-mode Photoshop set and it's the real creative control here - spend your time here, not on opacity. opacity (0–100) dials the strength. invert_mask defaults to true, the usual gotcha if your result looks masked backwards. And there's an optional layer_mask so the overlay only hits the region you want - this is essential for the common use case of tinting one object rather than the whole frame: mask the object, overlay the color, done.
One output: image, the tinted composite.
Install is the pack standard: search "ComfyUI Layer Style" in ComfyUI Manager, or cd ComfyUI/custom_nodes && git clone https://github.com/chflame163/ComfyUI_LayerStyle, then pip install -r requirements.txt and restart. Nothing to download.
Practical guidance: the number-one mistake is leaving blend_mode on normal, which just pastes a flat color over your image and looks awful - switch to multiply, overlay, soft light, or the color mode depending on whether you want to darken-tint, contrast-tint, or hue-swap. For recoloring an object while keeping its folds and shading, the color blend mode with a layer_mask on the object is the recipe. And the LayerStyle pack's usual caveat: if the node doesn't show up after install, the pack failed to import on a dependency conflict - check the console, "Try Fix" in Manager, reinstall the requirements. Once it's in, it's a two-second color tint you'll use more than you'd expect.
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| background_image | IMAGE | — | |
| layer_image | IMAGE | — | |
| invert_mask | BOOLEAN | true | — |
| blend_mode | COMBO | 30 options: normal, dissolve, darken, multiply, color burn, linear burn, +24 | |
| opacity | INT | 1000–100 | — |
| color | STRING | #FFBF30 | — |
| layer_maskopt | MASK | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |