Nodes/AAA Metadata System/Color Name to RGB and Hex v01
ComfyUI Node

Color Name to RGB and Hex v01

1,327 color names, decoded for you

By EricRollei·Created 10 months ago·Updated 8 months ago· 13
Color Name to RGB and Hex v01
    • hex_color
    • red
    • green
    • blue
    • preview
    colorwhite
    custom_color
    preview_size64

    Somewhere between a color name and a usable value there's a gap. You know you want "AntiqueWhite2", but the node you're feeding wants #EECFA1 or three separate numbers. Color Name to RGB and Hex v01 is the bridge: pick a name from a giant dropdown, get back the hex plus the red, green, and blue values, and a preview tile. It's the "full dictionary" version of the pack's simpler ColorSelector.

    It's part of the AAA Metadata System pack's color utility set, and it's exactly as deep as the dropdown looks: 1,327 named colors. That's the full CSS/X11-style palette plus the extended web-color family, sorted alphabetically so "Absolute Zero" and "Acid Green" come first and the CSS AntiqueWhite variants follow. If you've ever needed a color that isn't in the basic nine, this is the node.

    How it works

    Pure lookup. The node ships with a color-name dictionary mapping each of those 1,327 names to RGB tuples. Pick a name, it looks up the values, converts to hex, and renders a preview tile at your requested size. If the curated list isn't enough, the custom_color field accepts a hex code or a color name directly, which is handy for matching a specific brand color or the hex you copied from a design tool.

    Inputs and outputs that matter

    • color - the big dropdown. Start typing to filter; 1,327 entries is a lot to scroll.
    • custom_color (optional) - a hex code or color name that overrides the dropdown. Good for exact matches.
    • preview_size (optional, default 64) - the preview tile's dimensions.

    Outputs: hex_color (the #RRGGBB string), red, green, blue (the three INTs, if a downstream node wants components), and preview (an IMAGE swatch). Wire hex_color into anything that takes a color string, or the components into nodes that want channels.

    Installing it

    Part of AAA Metadata System by Eric Hiss (GitHub: EricRollei). Via ComfyUI Manager (search "AAA Metadata System") or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/EricRollei/AAA_Metadata_System.git
    cd AAA_Metadata_System
    pip install -r requirements.txt
    

    Restart ComfyUI. Nothing extra - the color dictionary ships with the pack.

    Common issues

    There's very little to trip on. The main thing is remembering the dropdown's list is fixed - if the color you want isn't there, that's what custom_color is for, and it accepts both names and hex. If you type a name into custom_color that's not in the dictionary, the node falls back to a default instead of telling you it didn't find it, so double-check unusual spellings. And don't confuse the two selector nodes: ColorSelector gives you ~nine curated colors per category, this one gives you the whole 1,327-name universe. Use the former for quick picks, this one when you need something specific.

    Categorycolors

    Inputs (3)

    NameTypeDefaultDescription
    colorCOMBOwhite1327 options: Absolute Zero, Acid Green, Amaranth, AntiqueWhite, AntiqueWhite1, AntiqueWhite2, +1321
    custom_coloroptSTRING
    preview_sizeoptINT6416–256

    Outputs (5)

    NameTypeDescription
    hex_colorSTRING
    redINT
    greenINT
    blueINT
    previewIMAGE