Skip to main content

Find human-readable color names for hex values

Project description

This is a little utility to give you the “human readable” color name given a hex value. Heavily based (one might even just call it a port…) on [ntc.js](http://chir.ag/projects/ntc/) by Chirag Mehta.

Usage

  • As a library:

    >>> from namethatcolor import NameThatColor

    >>> Namer = NameThatColor()

    >>> Namer.name(‘FFFFFF’)

    Match(hex_value=’#FFFFFF’, name=’White’, exact=True, original=’#FFFFFF’)

    >>> Namer.name(‘#FFFFFF’)

    Match(hex_value=’#FFFFFF’, name=’White’, exact=True, original=’#FFFFFF’)

    >>> Namer.name(‘aabbcc’)

    Match(hex_value=’#ADBED1’, name=’Casper’, exact=False, original=’#AABBCC’)

  • As a program:

    $ namethatcolor ffffff

    {“match_hex”: “#FFFFFF”, “match_name”: “White”}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

NameThatColor-1.0.2.tar.gz (25.2 kB view details)

Uploaded Source

File details

Details for the file NameThatColor-1.0.2.tar.gz.

File metadata

  • Download URL: NameThatColor-1.0.2.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for NameThatColor-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ed82214fd0bd542941bdd3851953e2a258c8bc7413084733421eef566115b409
MD5 f223e8451a343522c0e2c577f7dbc8b5
BLAKE2b-256 60955b40e0a6442a63c8ec02d4727e595be36b90f0a40767ff291809b1981dea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page