ADOBE AFTER EFFECTS: Forum Expressions Tutorials Podcasts Creative Cloud

Opacity color math

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jerry SmithOpacity color math
by on Jun 10, 2016 at 6:07:17 pm

So, I have a colored square with 100% opacity on a white background. I'd like to replace it by a darker colored square with 50% opacity. Is there a simple formula or web site with a color applet that I can use to calculate how to go from the hex for the original color to the hex for the darker color?


Return to posts index

Richard HerdRe: Opacity color math
by on Jun 10, 2016 at 7:14:53 pm
Last Edited By Richard Herd on Jun 10, 2016 at 7:16:36 pm

Have you tried Adobe Color?

EDIT: here is some blend mode math

Return to posts index

Kalle KannistoRe: Opacity color math
by on Jun 11, 2016 at 6:38:39 pm

You can calculate it by the RGB values


You'll see the hex value in the color picker dialog if you plug in the results there.

Note that if any of your original R, G or B values are below 128, the resulting color doesn't fall into the RGB gamut.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2016 All Rights Reserved