multicolorfits.suggest_colors#

multicolorfits.suggest_colors(n, lightness=65.0, chroma=55.0, hue_start=25.0)[source]#

Generate n perceptually evenly-spaced colors: equally spaced hue angles on a constant-lightness, constant-chroma ring in CIE LCh space.

Because the spacing is perceptual (unlike naive HSV hue stepping), the colors remain distinct for any n, and equal lightness means no layer visually dominates.

Parameters:
  • n (int) – Number of colors.

  • lightness (float) – CIE L* of the ring [0..100]. Higher = pastel, lower = deep.

  • chroma (float) – CIE chroma of the ring. Higher = more saturated (large values may clip at the sRGB gamut boundary for some hues).

  • hue_start (float) – Hue angle in degrees of the first color.

Returns:

list of str – Hex color strings.