ComfyUI > Nodes > ComfyUI-MingNodes > HSL Color

ComfyUI Node: HSL Color

Class Name

HSLColorNode

Category
MingNodes/Image Process
Author
mingsky (Account age: 79days)
Extension
ComfyUI-MingNodes
Latest Updated
2024-10-18
Github Stars
0.19K

How to Install ComfyUI-MingNodes

Install this extension via the ComfyUI Manager by searching for ComfyUI-MingNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-MingNodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

HSL Color Description

Adjust hue, saturation, and brightness of specific color ranges in images for precise color control and enhancement.

HSL Color:

The HSLColorNode is a powerful tool designed to adjust the hue, saturation, and brightness of specific color ranges within an image. This node allows you to fine-tune the appearance of your images by targeting individual colors such as red, orange, yellow, green, light green, blue, purple, and magenta. By providing precise control over these color attributes, the HSLColorNode enables you to enhance or modify the visual impact of your images, making it an essential component for AI artists looking to achieve specific aesthetic effects or correct color imbalances. The node processes images by converting them into a format suitable for color adjustments, applying the specified changes, and then converting them back to a format that can be used in further processing or output.

HSL Color Input Parameters:

image

The image parameter is the input image that you want to adjust. It is expected to be in a format compatible with the node's processing functions, typically a tensor representation of the image. This parameter is crucial as it serves as the base upon which all color adjustments will be applied.

red_hue

The red_hue parameter allows you to adjust the hue of red tones in the image. It accepts integer values ranging from -30 to 30, with a default of 0. Adjusting this parameter shifts the hue of red colors, which can alter the mood or style of the image.

red_saturation

The red_saturation parameter controls the intensity of red colors. It also accepts integer values from -30 to 30, with a default of 0. Increasing saturation makes reds more vivid, while decreasing it can mute the colors.

red_brightness

The red_brightness parameter adjusts the brightness of red tones. It ranges from -30 to 30, with a default of 0. This parameter can be used to lighten or darken red areas, affecting the overall contrast and visibility of these colors.

orange_hue

The orange_hue parameter modifies the hue of orange tones, with a range of -30 to 30 and a default of 0. This adjustment can change the perceived warmth or coolness of orange areas in the image.

orange_saturation

The orange_saturation parameter affects the intensity of orange colors, with values from -30 to 30 and a default of 0. Adjusting this can make oranges more vibrant or subdued.

orange_brightness

The orange_brightness parameter changes the brightness of orange tones, ranging from -30 to 30 with a default of 0. This can be used to enhance or reduce the prominence of orange areas.

yellow_hue

The yellow_hue parameter allows for hue adjustments of yellow tones, with a range of -30 to 30 and a default of 0. This can shift yellows towards greens or oranges, altering the image's color balance.

yellow_saturation

The yellow_saturation parameter controls the intensity of yellow colors, with a range from -30 to 30 and a default of 0. It can make yellows more striking or more muted.

yellow_brightness

The yellow_brightness parameter adjusts the brightness of yellow tones, with values from -30 to 30 and a default of 0. This can affect the visibility and contrast of yellow areas.

green_hue

The green_hue parameter modifies the hue of green tones, with a range of -30 to 30 and a default of 0. This can shift greens towards blues or yellows, impacting the image's color dynamics.

green_saturation

The green_saturation parameter affects the intensity of green colors, with values from -30 to 30 and a default of 0. Adjusting this can make greens more vivid or more subdued.

green_brightness

The green_brightness parameter changes the brightness of green tones, ranging from -30 to 30 with a default of 0. This can enhance or reduce the prominence of green areas.

lightGreen_hue

The lightGreen_hue parameter allows for hue adjustments of light green tones, with a range of -30 to 30 and a default of 0. This can shift light greens towards yellows or blues.

lightGreen_saturation

The lightGreen_saturation parameter controls the intensity of light green colors, with a range from -30 to 30 and a default of 0. It can make light greens more striking or more muted.

lightGreen_brightness

The lightGreen_brightness parameter adjusts the brightness of light green tones, with values from -30 to 30 and a default of 0. This can affect the visibility and contrast of light green areas.

blue_hue

The blue_hue parameter modifies the hue of blue tones, with a range of -30 to 30 and a default of 0. This can shift blues towards greens or purples, impacting the image's color dynamics.

blue_saturation

The blue_saturation parameter affects the intensity of blue colors, with values from -30 to 30 and a default of 0. Adjusting this can make blues more vivid or more subdued.

blue_brightness

The blue_brightness parameter changes the brightness of blue tones, ranging from -30 to 30 with a default of 0. This can enhance or reduce the prominence of blue areas.

purple_hue

The purple_hue parameter allows for hue adjustments of purple tones, with a range of -30 to 30 and a default of 0. This can shift purples towards blues or reds.

purple_saturation

The purple_saturation parameter controls the intensity of purple colors, with a range from -30 to 30 and a default of 0. It can make purples more striking or more muted.

purple_brightness

The purple_brightness parameter adjusts the brightness of purple tones, with values from -30 to 30 and a default of 0. This can affect the visibility and contrast of purple areas.

magenta_hue

The magenta_hue parameter modifies the hue of magenta tones, with a range of -30 to 30 and a default of 0. This can shift magentas towards purples or reds.

magenta_saturation

The magenta_saturation parameter affects the intensity of magenta colors, with values from -30 to 30 and a default of 0. Adjusting this can make magentas more vivid or more subdued.

magenta_brightness

The magenta_brightness parameter changes the brightness of magenta tones, ranging from -30 to 30 with a default of 0. This can enhance or reduce the prominence of magenta areas.

HSL Color Output Parameters:

result_img

The result_img is the output image that has undergone the specified HSL adjustments. It is returned as a tensor, ready for further processing or display. This output reflects the changes made to the hue, saturation, and brightness of the targeted color ranges, providing a visually modified version of the input image.

HSL Color Usage Tips:

  • Experiment with small adjustments to hue, saturation, and brightness to achieve subtle enhancements without over-saturating or distorting colors.
  • Use the node to correct color imbalances in images by targeting specific hues that appear too dominant or too weak.
  • Combine adjustments across multiple color ranges to create harmonious color schemes or to emphasize particular elements within an image.

HSL Color Common Errors and Solutions:

Image format not supported

  • Explanation: The input image is not in a compatible format for processing.
  • Solution: Ensure the image is converted to a tensor format before inputting it into the node.

Adjustment values out of range

  • Explanation: One or more adjustment parameters are set outside the allowed range of -30 to 30.
  • Solution: Verify that all hue, saturation, and brightness values are within the specified range and adjust them accordingly.

Unexpected output colors

  • Explanation: The adjustments may have been too extreme, leading to unnatural color shifts.
  • Solution: Reduce the magnitude of the adjustments and re-evaluate the output to achieve a more natural look.

HSL Color Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-MingNodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.