How to use hexadecimal color values in Power Apps canvas apps

This is going to be short and sweet. In Power Apps canvas apps, whenever we set the Color or Fill property of any control, we use RGBA code.

For example – Fill property of Label control.

How to  use hexadecimal color values in Power Apps canvas apps

If we try to put Hexadecimal values, Power Apps throw an error.

How to  use hexadecimal color values in Power Apps canvas apps

If you are new to Power Apps, you will end up getting the RBGA value for the corresponding Hexadecimal value and then use the RGBA value. While this is OK, it is difficult to do when you get the Hex code dynamically.

Then how to do it? There is infact a function ColorValue which make it easier for us to use the Hex value.

How to  use hexadecimal color values in Power Apps canvas apps

A quick tip which might just help you out in your journey to learn PowerApps.

Hope this helped! You will also like the below posts.

Debajit Dutta
Business Solutions MVP