Announcements
I have a simple UI wizard that I am creating that let's admin choose various visual style for their app. I am stuck on creating something to easily pick a color. For example, I have a field for 'label background color'. It would be great to have a color picker next to that text field where the user can pick the color and the text field is filled in with the hex value. Is this possible?
hey @futr_vision
try the following
In PowerApps, you can create a color picker by using a combination of controls and functions. Here's a step-by-step guide to create a simple color picker that fills in the HEX value in a text field:
Insert a Slider Control for Red, Green, and Blue:
Set the Slider Properties:
Insert a Label to Display the HEX Value:
Insert a Rectangle to Preview the Color:
Optional - Insert a Text Input to Display or Edit the HEX Value:
By following these steps, you'll create a basic color picker in PowerApps. Users can move the sliders to adjust the color, see the resulting HEX value, and preview the color in real-time. This approach provides an interactive and visual way for admins to choose colors within your app. You can further customize the UI and functionality according to your needs and the app's design.
Let me know if my answer helped solving your issue.If it did please accept as solution and give it a thumbs up so we can help others in the community.Greetings
Thanks. A couple of things.
1. yes
2. try this instead
"#" & Text(Round(255 * SliderRed.Value/100, 0), "[$-en-US]00") & Text(Round(255 * SliderGreen.Value/100, 0), "[$-en-US]00") & Text(Round(255 * SliderBlue.Value/100, 0), "[$-en-US]00")
Same result but thanks for trying. Any other ideas?
can you provide an example of what the output with 2 digits should be?
"#" & Text(Round(SliderRed.Value * 2.55, 0), "[$-en-US]00") & Text(Round(SliderGreen.Value * 2.55, 0), "[$-en-US]00") & Text(Round(SliderBlue.Value * 2.55, 0), "[$-en-US]00")
another guess
I'm trying to make something like this work. Unfortunately, even entering something like RGBA(0,0,0,0) in the text box throws and error that the value can not be converted to a number. That is why I was going down the path you suggested.
If you enter like this in the Fill for the rectangle, it'll work.
RGBA(sliderRed.Value,sliderGreen.Value,sliderBlue.Value,sliderTrans.Value%)
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 839
Valantis 533
Haque 412