Forum Discussion
JonathanHeuer
7 years agoQrew Cadet
LOVE these, thanks to you both. Does anyone understand the basis of hex color assignment in order to randomly generate only light colors (so that dark text can be easily read over them)?
_anomDiebolt_
7 years agoQrew Elite
You have to use a color model and (1) an online service or (2) JavaScript library to select a swatch of colors.
Example Service: I Want Hue
Colors for data scientists. Generate and refine palettes of optimally distinct colors.
http://tools.medialab.sciences-po.fr/iwanthue/index.php
Example Library: Chroma.js
JavaScript library for all kinds of color manipulations
https://github.com/gka/chroma.js/
Here is the math:
Colour Space Conversions
https://poynton.ca/PDFs/coloureq.pdf
Example Service: I Want Hue
Colors for data scientists. Generate and refine palettes of optimally distinct colors.
http://tools.medialab.sciences-po.fr/iwanthue/index.php
Example Library: Chroma.js
JavaScript library for all kinds of color manipulations
https://github.com/gka/chroma.js/
Here is the math:
Colour Space Conversions
https://poynton.ca/PDFs/coloureq.pdf