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 / Calculate Color value ...
Power Apps
Unanswered

Calculate Color value to be a darker version of the "main-color" to give a user a default value for a shade.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Question is in the title.

 

ty - ASMR

Categories:
I have the same question (0)
  • timl Profile Picture
    37,212 Super User 2026 Season 1 on at

    @Anonymous 

    One way to get a darker colour is to call the ColorFade function.

    Let's take the following main color: RGBA(204, 231, 246, 1)

    To obtain a darker shade, you would call the following:

    ColorFade(RGBA(204, 231, 246, 1),
     -.05
    )

     

    The second argument (set to -0.5 above) dictates the darkness. You can set this between 0 and -1. A value of -1 will produce a shade that's completely black.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    i know but its not what i need i would like to manipulate the RGB(A) values and to read out hex, convert it to decimal to then calculate it to convert it back feels like a throwback to the 2000s

  • timl Profile Picture
    37,212 Super User 2026 Season 1 on at

    @Anonymous 

    With regards to what you've said here, can you clarify how you've defined your source colour?

    >>i would like to manipulate the RGB(A) values

    Can I please also request that you punctuate your words into sentences because it's difficult for me to understand what you're trying to say in your post.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The user can select a color in a color picker.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard