MQTT Payload parsing

I have MQTT topic tiltbridge that has a payload that looks like:

tiltbridge tiltbridge,tilt_color=Red specific_gravity=1.004,temperature=64
tiltbridge tiltbridge,tilt_color=Purple specific_gravity=1.003,temperature=64
tiltbridge tiltbridge,tilt_color=Yellow specific_gravity=0.999,temperature=64

There are 3 sensors Red, Purple, and Yellow

How do I create a sensor template that will create a new sensor for each color with the state or attribute values from specific_gravity and temperature?