Palettes Functions

Available functions:


Generate complementary

Generates a complementary color palette.

Returns:
    list: A list of RGB tuples representing the complementary palette.

Generate analogous

Generates an analogous color palette.

Parameters:
    angle (int): The angle difference for analogous colors (default 30).

Returns:
    list: A list of RGB tuples representing the analogous palette.

Generate triadic

Generates a triadic color palette.

Returns:
    list: A list of RGB tuples representing the triadic palette.

Generate tetradic

Generates a tetradic color palette.

Returns:
    list: A list of RGB tuples representing the tetradic palette.

Generate square

Generates a square color palette.

Returns:
    list: A list of RGB tuples representing the square palette.

Generate split-complementary

Generates a split-complementary color palette.

Returns:
    list: A list of RGB tuples representing the split-complementary palette.

Generate monochromatic

Generates a monochromatic color palette.

Parameters:
    shades (int): Number of shades to generate (default 24).

Returns:
    list: A list of RGB tuples representing the monochromatic palette.

Palette to HEX

Converts the RGB palette to HEX format.

Returns:
    list: A list of HEX strings representing the palette.

Generate random palette

Generates a random base color and its associated palettes.

Returns:
    dict: A dictionary containing the following keys:
        - 'Base Color' (tuple): The randomly generated RGB base color, e.g., (R, G, B).
        - 'Complementary Palette' (list): A list of colors in the complementary palette.
        - 'Analogous Palette' (list): A list of colors in the analogous palette.
        - 'Triadic Palette' (list): A list of colors in the triadic palette.
        - 'Monochromatic Palette' (list): A list of colors in the monochromatic palette.

Generate random color

Generates a random RGB color and converts it to HEX and HSL formats.

Returns:
    dict: A dictionary containing:
        - "RGB Color" (tuple): The random RGB color as a tuple of three integers.
        - "HEX Color" (str): The color converted into HEX format.
        - "HSL Color" (tuple): The color converted into HSL format.

Generate random HEX colors

Generates a list of random colors in HEX format.

Parameters:
    n (int, optional): The number of random HEX colors to generate. Default is 10.

Returns:
    list: A list of HEX color strings.

Last updated

Was this helpful?