Skip to main content

Search for color names through HEX, or search for color information through names

Project description

pycolors-kit

License: MIT Python

Description

Search for color names through HEX, or search for color information through names

Installation

Install pycolors-kit into your python environment, using:

pip install pycolors-kit

After installing, you can use the project as follows:

Example

from pycolors_kit import ColorEx


def test():
    color = ColorEx()

    print(color.get_name_by_hex('#fe9956'))
    print(color.get_color_by_name('acapulco sun'))
    print(color.get_name_by_rgb([200,54,76]))
    print(color.get_hex_by_name('Autumn Splendor'))
    
    print(color.rgb_to_hex([200, 54, 76]))
    print(color.hex_to_rgb('#C8364C'))


if __name__ == '__main__':
    test()

Output

Autumn Splendor
{'name': 'Acapulco Sun', 'hex': '#eb8a44', 'rgb': {'r': 235, 'g': 138, 'b': 68}, 'hsl': {'h': 25, 's': 80.67633, 'l': 59.41176}, 
                                           'lab': {'l': 67.31829, 'a': 33.92547, 'b': 52.72836}, 'luminance': 107.51389}
Cherry Lolly
#fe9a50
#C8364C
(200, 54, 76)

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

pycolors-kit-1.0.4.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

pycolors_kit-1.0.4-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file pycolors-kit-1.0.4.tar.gz.

File metadata

  • Download URL: pycolors-kit-1.0.4.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.6

File hashes

Hashes for pycolors-kit-1.0.4.tar.gz
Algorithm Hash digest
SHA256 b57426688c18fed4ae8e61558e4285fd25d6f867526e72728e2378e4cef3b42f
MD5 1b60cccce50b512ae54fbc56745448cc
BLAKE2b-256 2274e4940ca63c9f5e979f572d5f23d3d4723db8b9d59cd53545438efee7fcde

See more details on using hashes here.

File details

Details for the file pycolors_kit-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pycolors_kit-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6a6d899648460a4f50378821cffa02323f2644ba3d730ae06390ca4bc4e1826c
MD5 e6791575b735075566c10dd164e72dd4
BLAKE2b-256 50f49a1f73bfed1274deeb70a180c9870ca233360bad30d304a1a08246b7c139

See more details on using hashes here.

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