input: Write a python function to generate a list of random colors using the HLS color space and convert them to RGB.
  ```python
  assert len(generate_colors(5)) == 5
  assert all(isinstance(color, tuple) and len(color) == 3 for color in generate_colors(3))
  assert all(0 <= component <= 1 for color in generate_colors(1) for component in color)
output: import random
  import colorsys
  
  def generate_colors(n):
      colors = []
      for _ in range(n):
          h = random.random()
          l = random.uniform(0.4, 0.6)  # Keep luminance in the middle range
          s = random.uniform(0.7, 1.0)  # Keep saturation high
          rgb = colorsys.hls_to_rgb(h, l, s)
          colors.append(rgb)
      return colors