PHPackages                             primal/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. primal/color

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

primal/color
============

Collection of classes for converting and manipulating colors

1.0.2(2y ago)24506.7k↓25.4%44MITPHPPHP &gt;=5.3.3

Since Dec 2Pushed 2y ago3 watchersCompare

[ Source](https://github.com/PrimalPHP/Color)[ Packagist](https://packagist.org/packages/primal/color)[ Docs](http://github.com/PrimalPHP/Color)[ RSS](/packages/primal-color/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (4)

Primal.Color
============

[](#primalcolor)

Created and Copyright 2012 by Jocelyn Badgley, chiper at chipersoft dot com.

Primal.Color is a standalone micro-library to assist in the parsing, converting and manipulation of colors across various formats.

Currently Primal.Color supports converting between the following formats:

- RGB (Hex3, Hex6 and css `rgb()`)
- HSV
- HSL
- CMYK

Primal.Color also includes a basic color wheel class for generating collections of colors across a spectrum.

[Primal](http://www.primalphp.com) is a collection of independent micro-libraries that collectively form a [LAMP](http://en.wikipedia.org/wiki/LAMP_(software_bundle)) development framework, but is not required to use Primal.Color in your own projects.

Requirements
------------

[](#requirements)

- PHP 5.3 or later

Usage
-----

[](#usage)

*coming soon*

Legal
-----

[](#legal)

Primal is released under an MIT license. No attribution is required and you are expected to make alterations. For details see the enclosed LICENSE file.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 73% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1377 days

Total

3

Last Release

1066d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31834882?v=4)[ChiperSoft](/maintainers/ChiperSoft)[@ChiperSoft](https://github.com/ChiperSoft)

---

Top Contributors

[![Twipped](https://avatars.githubusercontent.com/u/231157?v=4)](https://github.com/Twipped "Twipped (27 commits)")[![clslrns](https://avatars.githubusercontent.com/u/809446?v=4)](https://github.com/clslrns "clslrns (3 commits)")[![robbertkl](https://avatars.githubusercontent.com/u/5704510?v=4)](https://github.com/robbertkl "robbertkl (2 commits)")[![buggedcom](https://avatars.githubusercontent.com/u/2810?v=4)](https://github.com/buggedcom "buggedcom (1 commits)")[![Stubbs](https://avatars.githubusercontent.com/u/43525?v=4)](https://github.com/Stubbs "Stubbs (1 commits)")[![mlocati](https://avatars.githubusercontent.com/u/928116?v=4)](https://github.com/mlocati "mlocati (1 commits)")[![kitbs](https://avatars.githubusercontent.com/u/4569320?v=4)](https://github.com/kitbs "kitbs (1 commits)")[![mkly](https://avatars.githubusercontent.com/u/965353?v=4)](https://github.com/mkly "mkly (1 commits)")

---

Tags

color

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/primal-color/health.svg)

```
[![Health](https://phpackages.com/badges/primal-color/health.svg)](https://phpackages.com/packages/primal-color)
```

###  Alternatives

[spatie/color

A little library to handle color conversions

38018.9M28](/packages/spatie-color)[mexitek/phpcolors

A series of methods that let you manipulate colors. Just incase you ever need different shades of one color on the fly.

5003.6M18](/packages/mexitek-phpcolors)[mistic100/randomcolor

Generate attractive random colors

2431.4M6](/packages/mistic100-randomcolor)[kartik-v/yii2-widget-colorinput

An enhanced Yii 2 widget encapsulating the HTML 5 color input (sub repo split from yii2-widgets)

324.8M10](/packages/kartik-v-yii2-widget-colorinput)[ssnepenthe/color-utils

A PHP library for performing SASS-like color manipulations.

631.1M10](/packages/ssnepenthe-color-utils)[tecnickcom/tc-lib-color

PHP library to manipulate various color representations

247.2M9](/packages/tecnickcom-tc-lib-color)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
