The only way to do this is by dividing this into R, G, B and then do the math on these. See Here
this post was submitted on 24 Jun 2023
11 points (100.0% liked)
Programming
13371 readers
1 users here now
All things programming and coding related. Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 1 year ago
MODERATORS
Doesn't look like a linear operation in RGB color space to me just eyeing the hex values. Might be an operation in HSL or CMYK spaces
Thanks for the link!
I don't know how exact the values need to be, but optically, the closest I could get to --result
is with these values, still using color-mix:
color-mix(in srgb, #02C390, 79% #31363B)
It came out as #27544D
To be fair, my monitors are not colour calibrated so it might not even look like that on your screen or anyone else's.
If you don't mind me asking, how did you arrive at --result
's value?