In my @vue/cli 4.1.1 app user enter color and I have to output color value with entered color and I wonder how can I calculate and set background color to be sure that entered color value is good visible. I mean if user entered white color(or near) background must be dark?
Thanks