<｜begin▁of▁sentence｜>### Instruction:
As a recreational therapist working at a rehabilitation center, you may encounter individuals who benefit from engaging in art and craft activities. To cater to their needs, you may need to understand how to convert RGBA colors to HSLA colors. This process involves manipulating the Red, Green, Blue, and Alpha channel values for the colors to represent them in terms of Hue, Saturation, and Lightness. This knowledge can help you create engaging and therapeutic activities using different colors and shades, tailored to individual preferences, in order to promote emotional well-being and enhance quality of life for the individuals you work with.
### Response:
import colorsys

# Convert an RGBA color to HSLA
def rgba_to_hsla(r, g, b, a):
    # Ensure RGBA values are in the [0, 1] range
    r, g, b, a = [x / 255.0 for x in (r, g, b, a)]

    # Convert RGB to HSL
    h, l, s = colorsys.rgb_to_hls(r, g, b)

    # Return the HSLA tuple
    return h, s, l, a

# Example RGBA color
rgba_color = (52, 235, 128, 0.5)

# Conversion
hsla_color = rgba_to_hsla(*rgba_color)
print(f'HSLA color: {hsla_color}')
<|EOT|>
