PHPackages                             zeek/color - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. zeek/color

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

zeek/color
==========

A micro PHP package to convert and alter colors! 🌈

1.3.1(4y ago)04MITPHPPHP &gt;=7.1

Since Jun 17Pushed 4y agoCompare

[ Source](https://github.com/ZeekInteractive/color)[ Packagist](https://packagist.org/packages/zeek/color)[ RSS](/packages/zeek-color/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (6)Used By (0)

[![](https://camo.githubusercontent.com/d7077f36f66260bc1c284fc9e8c0a22243b94398891f05687bab52e993ce459c/687474703a2f2f6c697175696470696e656170706c652e6f2e6175726f72616f626a656374732e65752f696d672f636f6c6f722e6a7067)](https://liquidpineapple.net)

[![Build Status](https://camo.githubusercontent.com/2275f857b7f3a8a54433a81b685502a72f2dbe41eb4cfc9a82299c4aacda0faf/68747470733a2f2f7472617669732d63692e6f72672f6c697175696470696e656170706c652f636f6c6f722e737667)](https://travis-ci.org/liquidpineapple/color)[![StyleCI](https://camo.githubusercontent.com/ecd9b47470411ad08f7a699fc78e0ee52bff0063d68f444307cfcf3f8a0c7847/68747470733a2f2f7374796c6563692e696f2f7265706f732f39343634313736332f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/94641763)[![](https://camo.githubusercontent.com/a86d403ea17b0a3f8a9f94c4c1534ad91c77be553f12a20e2ca47b60e2dec0ff/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6c697175696470696e656170706c652f636f6c6f722f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/liquidpineapple/color/coverage)

[![Stories in Ready](https://camo.githubusercontent.com/631669f307a944771e9e4d8c76f55b65f607be3b52ece5c5b8110ace26e337cf/68747470733a2f2f62616467652e776166666c652e696f2f6c697175696470696e656170706c652f636f6c6f722e706e673f6c6162656c3d7265616479267469746c653d5265616479)](https://waffle.io/liquidpineapple/color?utm_source=badge)[![Stories in Progress](https://camo.githubusercontent.com/6a124c2438288861ac82f3b2b90f073e53024e6e013fc1aa702434dfd003662f/68747470733a2f2f62616467652e776166666c652e696f2f6c697175696470696e656170706c652f636f6c6f722e706e673f6c6162656c3d496e25323050726f6772657373267469746c653d496e25323050726f6772657373)](https://waffle.io/liquidpineapple/color?utm_source=badge)[![Stories in Done](https://camo.githubusercontent.com/913ca854973e749f9aff65db95503150fef7e7052e5265ded1baf7a0643f4639/68747470733a2f2f62616467652e776166666c652e696f2f6c697175696470696e656170706c652f636f6c6f722e706e673f6c6162656c3d646f6e65267469746c653d446f6e65)](https://waffle.io/liquidpineapple/color?utm_source=badge)

A micro PHP package to convert and alter colors! 🔥

Contents of this document:

- [Installation](#installation)
- [Documentation](#documentation)
- [Contributing](#contributing)

Installation
============

[](#installation)

You can install this package through composer. To install the latest version in to your project use the following command:

```
composer require liquidpineapple/color
```

This package requires PHP 7.0 or higher.

Documentation
=============

[](#documentation)

Table of contents:

1. [**Conversion**](#1-conversion)

    b) [Output](#1a-output)

    a) [Types](#1b-types)
2. [**Alteration**](#2-alteration)

    a) [Lightness](#2a-lightness)

    b) [Saturation](#2b-saturation)

1. Conversion
-------------

[](#1-conversion)

You can use this package to convert colors to different notations. An example might be converting HEX to RGB:

```
