Need help with script - flash hue light a different color

I have the script below which flashes a Phillips Hue lamp. I can’t seem to make it change colors before it flashes. I can make it flash, or make it change color, not both at the same time. My goal is to make it turn red, and then flash. Any ideas?

repeat:
  while:
    - condition: state
      entity_id: >-
        binary_sensor.door_sensor_2_access_control_door_is_open_2
      state: "on"
      for:
        hours: 0
        minutes: 0
        seconds: 0
  sequence:
    - service: light.toggle
      data:
        brightness_pct: 100
      target:
        device_id:
          - 5e550b561ef787b1a05f3c365189ea72
    - delay:
        hours: 0
        minutes: 0
        seconds: 1
        milliseconds: 0
    - service: light.toggle
      data:
        brightness_pct: 100
        color_name: red