Skip to content
Port of webcolors library from Python to Go
Branch: master
Clone or download
Latest commit d3232ed Aug 21, 2015
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Create LICENSE Aug 21, 2015 added link to the godoc Apr 25, 2014
go-webcolors.go changed package name Apr 25, 2014
go-webcolors_test.go changed package name Apr 25, 2014


A library for working with color names and color value formats defined by the HTML and CSS specifications for use in documents on the Web.

go-webcolors is available on the Godoc

This library is originally available in Python by James Bennett, PyPI and Bitbucket. go-webcolors have been ported from Python to Go with all the functions available. Contributions in the form of patches, issue reports, bug reports and pull requests are welcome.

Support is included for the following formats:

  • Specification-defined color names
  • Six-digit hexadecimal
  • Three-digit hexadecimal
  • Integer rgb triplet
  • Percentage rgb triplet
You can’t perform that action at this time.