Search for color names through HEX, or search for color information through names
Project description
pycolors-kit
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.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
#C8364C
(200, 54, 76)
Project details
Release history Release notifications | RSS feed
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.3.tar.gz
(1.5 MB
view details)
Built Distribution
File details
Details for the file pycolors-kit-1.0.3.tar.gz
.
File metadata
- Download URL: pycolors-kit-1.0.3.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab63ce4dd730524d3c769e2d90215ca81cccdc47ae2f48826fa85d37b7d18b00 |
|
MD5 | 0995a301a43745dc6fa3e6d021bffea4 |
|
BLAKE2b-256 | a8e3586af13271f6f0527ba0fa869e1187d6f56bfc136716dfca1a6a92bd8142 |
File details
Details for the file pycolors_kit-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: pycolors_kit-1.0.3-py3-none-any.whl
- Upload date:
- Size: 1.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cbbd1b72a6dfdd2523b4a4775d0dcf9ce1aea2c97f7e5dc74dbe95d4ef43002 |
|
MD5 | 303824c335b6b0ace0506eac4161e773 |
|
BLAKE2b-256 | 6737219a8558f42666d8c57e68753bdb67e826ae85dbff7bab43cfee043e6846 |