Metadata-Version: 2.4
Name: hexcolor-tools
Version: 1.0.0
Summary: Fast Python color converter, RGB to HSL calculator, and hex code validator by HexColor.ie
Home-page: https://hexcolor.ie/?utm_source=pypi&utm_medium=package&utm_campaign=hexcolor_tools
Author: HexColor.ie
Author-email: contact@hexcolor.ie
Project-URL: Homepage, https://hexcolor.ie/?utm_source=pypi&utm_medium=homepage&utm_campaign=hexcolor_tools
Project-URL: Chrome Extension, https://chromewebstore.google.com/detail/hexcolorie-color-picker-p/gfnboafaimoipenpebbfpajbhgckljhp
Project-URL: Gradient Generator, https://hexcolor.ie/image-gradient-generator/?utm_source=pypi&utm_medium=tools&utm_campaign=hexcolor_tools
Project-URL: Bug Tracker, https://hexcolor.ie/?utm_source=pypi&utm_medium=bugs&utm_campaign=hexcolor_tools
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Multimedia :: Graphics
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: LICENSE.metadata.json
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: project-url
Dynamic: requires-python
Dynamic: summary

# hexcolor-tools 🎨

> Lightweight, zero-dependency Python color converter, RGB to HSL calculator, and hex code validator.

Powered by [HexColor.ie](https://hexcolor.ie/?utm_source=pypi&utm_medium=readme&utm_campaign=hexcolor_tools) - Free color palette generator, image gradient extractor, and color conversion suite.

Check out our official Chrome Extension: [HexColor.ie Color Picker on Chrome Web Store](https://chromewebstore.google.com/detail/hexcolorie-color-picker-p/gfnboafaimoipenpebbfpajbhgckljhp).

---

## Installation

```bash
pip install hexcolor-tools
```

## Features

- **Hex Code Validation**: Check if string is a valid 3 or 6-digit hex color code.
- **Hex to RGB Conversion**: Convert `#c27e79` to `(194, 126, 121)`.
- **RGB to Hex Conversion**: Convert RGB values back to 6-digit hex code string.
- **Hex to HSL Conversion**: Convert hex colors to HSL values `(h, s, l)`.

## Usage

```python
from hexcolor_tools import is_valid_hex, hex_to_rgb, rgb_to_hex, hex_to_hsl

print(is_valid_hex('#c27e79')) # True
print(hex_to_rgb('#c27e79'))    # (194, 126, 121)
print(hex_to_hsl('#c27e79'))    # (4, 38, 62)
print(rgb_to_hex(194, 126, 121)) # '#c27e79'
```

## Resources

- Website: [HexColor.ie](https://hexcolor.ie/?utm_source=pypi&utm_medium=readme_resources&utm_campaign=hexcolor_tools)
- Image Gradient Generator: [HexColor.ie/image-gradient-generator](https://hexcolor.ie/image-gradient-generator/?utm_source=pypi&utm_medium=readme_tools&utm_campaign=hexcolor_tools)
- Chrome Extension: [HexColor.ie Extension](https://chromewebstore.google.com/detail/hexcolorie-color-picker-p/gfnboafaimoipenpebbfpajbhgckljhp)

## License

MIT © [HexColor.ie](https://hexcolor.ie/?utm_source=pypi&utm_medium=readme_license&utm_campaign=hexcolor_tools)
