webcolors
A library for working with and converting between the color formats defined in HTML and CSS.
Supports the RGB color formats of HTML 4, CSS 1, CSS 2 and CSS 3, as well as the color parsing and serialization algorithms of HTML5.
This library knows why Chuck Norris is a color.
Project information:
| Latest version | 25.10.0 (October 31, 2025) |
|---|---|
| License | BSD |
| Packages | on the Python Package Index |
| Documentation | on Read the Docs |
| Repository | on GitHub |
| Continuous integration | on GitHub Actions |
| CI status |