Welcome to Microsoft Q&A!
The current version of Post message (V2) operation in Slack connector does not expose the attachments field which has the color attribute. I will reach out to our team to gather more details around it and will share it with you.
As a workaround, you may choose to use Http action to achieve the required result by calling the corresponding Slack api.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.