3 ms·
See https://www.w3schools.com/colors/colors_schemes.asp https://www.w3schools.com/colors/colors_schemes.asp for the theory, which is easy to implement if you wo
by PaulHoule 4y ago
See https://www.w3schools.com/colors/colors_schemes.asp https://www.w3schools.com/colors/colors_schemes.asp for the theory, which is easy to implement if you work in a color space like HSV. That covers hue.
You also need to consider value, which is light vs dark. Text has to be much darker or lighter than the background it is on. There is just about enough dynamic range available that you can have values in the middle of the range on which much darker or much lighter text is visible according to the web accessibility standards.
Saturation is another slider to think about you might want to use colors with a consistent saturation or you might want to use saturated/subdued to call something out or to hide something.
A method I use a lot is to take an image with colors I like and just copy them with the eye dropper tool.
I like this also
https://seaborn.pydata.org/tutorial/color_palettes.html https://seaborn.pydata.org/tutorial/color_palettes.html
- sebastiennight 4y agoThanks. That Seaborn reference was really interesting! I'm looking to have it done programmatically rather than with the eye dropper. I think ML is probably the right tool for the job if fed enough examples of palettes that "work".