Palettes Functions

Available functions:

circle-info

To use ColorPalette, you must first initialize it with a base color (RGB tuple) before use:

color_manager = ColorManager(base_color)

This, however, is not needed when using for random generation; you can init with a default RGB color of (0,0,0), which is black.


Generate complementary

Generates a complementary color palette.

Generate analogous

Generates an analogous color palette.

circle-info

angle represents how close the color values are to each other. You can lower the angle to, say 15, for closer colors to that of the base color, or even increase it for colors that are still analogous in a sense but further away.

Generate triadic

Generates a triadic color palette.

Generate tetradic

Generates a tetradic color palette.

Generate square

Generates a square color palette.

Generate split-complementary

Generates a split-complementary color palette.

Generate monochromatic

Generates a monochromatic color palette.

Palette to HEX

Converts the RGB palette to HEX format.

Generate random palette

Generates a random base color and its associated palettes.

Generate random color

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

Generate random HEX colors

Generates a list of random colors in HEX format.

circle-info

We chose to add a batch HEX color generate function just for accessibility since HEX is popular, but you can quickly convert the colors to other formats as well.

Generate gradient

Generates a gradient between two RGB colors.

Export palette

Exports the current color palette (list or dict) to a file.

Last updated