Skip to main content

Notifications

Community site session details
Power Apps - Building Power Apps
Answered

Using String in RGBA format as Color Value

Like (1) ShareShare
ReportReport
Posted on 26 Jun 2024 13:58:12 by 1,272 Super User 2025 Season 1

I have a Collection of color values in "RGBA(####,####,####,#.#)" format. When I use this as a color value:

LookUp('App Style Guide',Name = "App Bar Fill").RGBA

 

which outputs:

RGBA(0,0,0,1)

 

But when I use that as the color value for something I get "Expected Color Value". My workaround is to put the "RGBA" text on the outside and then pull in the values for the numbers individually:

RGBA(
 LookUp('App Style Guide',Name = "App Bar Fill").R,
 LookUp('App Style Guide',Name = "App Bar Fill").G,
 LookUp('App Style Guide',Name = "App Bar Fill").B,
 LookUp('App Style Guide',Name = "App Bar Fill").A
)

 

Categories:
  • Verified answer
    MichaelFP Profile Picture
    1,831 Super User 2025 Season 1 on 26 Jun 2024 at 14:07:49
    Re: Using String in RGBA format as Color Value

    Why you store as hexadecimal value and using ColorValue("#FFFFF") to set the color?

     

    If my answer helped you, please give me a thumbs up (๐Ÿ‘). If solve your question please mark as solution โœ”๏ธ. This is help the community.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

๐ŸŒธ Community Spring Festival 2025 Challenge Winners! ๐ŸŒธ

Congratulations to all our community participants!

Warren Belz โ€“ Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Communityโ€ฆ

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 298 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 174

#3
stampcoin Profile Picture

stampcoin 130

Overall leaderboard
Loading started
Loading started
Loading complete