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 hashes)

Uploaded Source

Supported by

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