This can be a tricky question.
I have a php function that returns the color value in rgba() with the argument $alpha .
function colorWheel($alpha) { "rgba(170, 135, 178, ".$alpha.")" … }
Therefore, when called ...
.title { color: <?php echo colorWheel(.8); ?>; }
... I get rgba(170, 135, 178, .8);
The problem with this is that the color is “transparent” and shows “overlays”.

However, what I really like is only 80% of the color value! Without any transparent linings.
The question is how to solve this?
Any creative ideas how to do this? I don't need to use rgba() , it's just the easiest thing that occurred to me. Is there a CSS way not to blend overlay shapes with alpha value?
Or is there a php solution to calculate the version of 80% rgb(170, 135, 178) ? It is important that this calculation works dynamically with the function, because the function has more colors - this is the next question "How to return a value based on color, date and random?" !
Thanks in advance.
source share