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.1.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

NameThatColor-1.0.1-py2.6.egg (24.6 kB view details)

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for NameThatColor-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e34ea1414431c79674d4561b30da163551af6a4b877612cfe2276c31ada215e0
MD5 b6312693e8dba873b9274e98f0ab4994
BLAKE2b-256 2958f5ee2052dca94fe4589e73334838365441475a07676ed88dff5af8fdae6f

See more details on using hashes here.

File details

Details for the file NameThatColor-1.0.1-py2.6.egg.

File metadata

File hashes

Hashes for NameThatColor-1.0.1-py2.6.egg
Algorithm Hash digest
SHA256 4398e9a38f42cba91dcddf0b3cb85706a1cbd5b5c2e30568d5bf80de4ae92ead
MD5 858e241aa156f6069def613e2ef54c90
BLAKE2b-256 b797d46467e97aed2691bb20aa110a910c337aaf7567041735b5683812cfd77c

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