web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Enabling Colors from Site
Power Apps
Answered

Enabling Colors from Site

(0) ShareShare
ReportReport
Posted on by 987

So I bet we've all had that day where a customer will change color palettes a few times, and have us playing with shades of grey for an hour....argh! Well, I have this idea that I would like to use with all my Power Apps where I save the color in the SharePoint site in a list that the end user can change on demand! (Doesn't that sound enabling!? (smiles)

 

Here is the list I made (plus I made a connection to "ConfigColor" list in the Power App):

Note: dispite the display you see below for the second column - the internal name is just "RGB"

ColorIdea.PNG

 

Then I created a Square Shape in my app, and in the Fill property I added this expression which is returning BLACK for some reason). LookUp(ConfigColor, "Tan" in "Title").RGB)

 

If I type the string in manually into the Fill property it's correctly color - but not via the filter. Can anyone help, is my idea a dud?

 

Thank you!

Categories:
I have the same question (0)
  • hngdev Profile Picture
    304 on at

    Yes, you can implement that by using ColorValue and Hex value, like this:

     

     PAColorCustom.PNG

     

    And the source

     

    PAColorCustom1.PNG

     

    Hope this helps. 

     

    Link to ColorValuehttps://powerapps.microsoft.com/en-us/tutorials/function-colors/

    Also, you can also do that with RGBA: same link as above.

     

     

  • audrieFCT Profile Picture
    987 on at

    Thank you for your suggestions. However, you're using Excel but I am not permitted to use excel due to concurrent user limitations (we have hundreds of users who will hit these forms concurrently which Excel does not support). Can the same thing be done using SharePoint list as I described?

  • hngdev Profile Picture
    304 on at

    Hi,

    I believe that the same goes to SharePoint List, just import the list and you're good to go. Also, You don't have to change anything but the datasource and the table names.

  • audrieFCT Profile Picture
    987 on at

    I really appreciate your help, here's what I did with result in screen shot (remember I am filling a 'shape' with color, just in case that matters - your screen shot looks like buttons)

     

    1. I changed the Hex column values to include the # before the Hex value.

    colorlist.PNG

     

    2. I copied your expression (only replacing the column headers with the ones I have in my list), but it's still coming up black. Error saids: This function can only be used in Action rules. (Is the fill property the wrong property for this?)

     

    color.png

  • Verified answer
    hngdev Profile Picture
    304 on at

    oh, I thought you need something to trigger the color change.

    In your case, you can do ColorValue(LookUp(ConfigColor, Title = "Tan").Hex)

  • audrieFCT Profile Picture
    987 on at

    Bingo! Thanks so much for sharing ColorValue() with me and adjusting to the SharePoint requirement! You rock!

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard