Pyodide is a port of CPython to WebAssembly/Emscripten. Pyodide makes it possible to install and run Python packages in the browser with micropip. Any pure Python ...
The colornames library gives you the name of any RGB color. If the exact color you're looking for doesn't have a name, it'll find the closest match instead.