How to add RGB to the automation

Not able to add RGB value to the automation to change colors. I have tried using RGB and xy.

alias: Living Room Hallway light turn on
description: Turn on when motion detected
trigger:
  - type: motion
    platform: device
    device_id: 8cfd91f06461d4f12b24a2e748498265
    entity_id: binary_sensor.third_reality_inc_3rms16bz_iaszone
    domain: binary_sensor
condition:
  - condition: device
    type: is_off
    device_id: 3a78eb5a085a5e9d5a5eb5a71e44afdb
    entity_id: light.hallway_sinlgw_bul_light
    domain: light
action:
  - if:
      - condition: time
        before: "06:59:00"
        weekday:
          - sun
          - sat
          - fri
          - thu
          - wed
          - tue
          - mon
        after: "23:01:00"
    then:
      - type: turn_on
        device_id: 3a78eb5a085a5e9d5a5eb5a71e44afdb
        entity_id: light.hallway_sinlgw_bul_light
        domain: light
        brightness_pct: 2
        flash: short
    else: []
  - if:
      - condition: time
        before: "19:00:00"
        after: "07:00:00"
        weekday:
          - sun
          - sat
          - fri
          - thu
          - wed
          - tue
          - mon
      - type: is_illuminance
        condition: device
        device_id: 160424f2c62357e1b6e7a79c2521378b
        entity_id: sensor.lumi_lumi_sensor_motion_aq2_illuminance
        domain: sensor
        below: 3
    then:
      - type: turn_on
        device_id: 3a78eb5a085a5e9d5a5eb5a71e44afdb
        entity_id: light.hallway_sinlgw_bul_light
        domain: light
        brightness_pct: 100
  - if:
      - condition: time
        before: "23:00:00"
        after: "19:01:00"
        weekday:
          - sun
          - sat
          - fri
          - thu
          - wed
          - tue
          - mon
    then:
      - type: turn_on
        device_id: 3a78eb5a085a5e9d5a5eb5a71e44afdb
        entity_id: light.hallway_sinlgw_bul_light
        domain: light
        brightness_pct: 100
mode: single

Bulb properties from developer tools

min_mireds: 158
max_mireds: 495
effect_list:
  - colorloop
supported_color_modes:
  - color_temp
  - xy
off_with_transition: false
off_brightness: null
friendly_name: Hallway Light L.R. Light
supported_features: 44
color_mode: xy
brightness: 254
hs_color:
  - 331.233
  - 28.627
rgb_color:
  - 255
  - 182
  - 217
xy_color:
  - 0.385992
  - 0.286

Please assist.

Thank you

Use service: light.turn_on instead and select the colour you want from the color picker.

Where do I put this service: light.turnon?
I’m guessing under actions. So if I do that then I remove this whole things below ?

type: turn_on
        device_id: 3a78eb5a085a5e9d5a5eb5a71e44afdb
        entity_id: light.hallway_sinlgw_bul_light
        domain: light
        brightness_pct: 100

Yes, select the service in the action part.