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

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

tei187/color-tools
==================

Handling of color based methods, such as conversion, chromatic adaptation, difference measurement.

1.0.0(1y ago)215MITPHP

Since Jun 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tei187/ColorTools)[ Packagist](https://packagist.org/packages/tei187/color-tools)[ RSS](/packages/tei187-color-tools/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

COLOR TOOLS
===========

[](#color-tools)

Description
-----------

[](#description)

Set of classes used to convert colors and calculate color difference.

---

Features
--------

[](#features)

- ### Model conversion:

    [](#model-conversion)

    - xy,
    - xyY,
    - XYZ,
    - L\*ab,
    - L\*uv,
    - L\*CH.
    - L\*CH UV.
    - HSV,
    - HSL,
    - RGB for primaries \*:
        - Adobe 1998 RGB,
        - Apple RGB,
        - Best RGB,
        - Beta RGB,
        - Bruce RGB,
        - CIE RGB,
        - ColorMatch RGB,
        - Don RGB 4,
        - ECI RGB v2,
        - Ekta Space PS5,
        - NTSC RGB,
        - PAL/SECAM RGB,
        - ProPhoto RGB,
        - Radiance RGB,
        - Rec.709,
        - SMPTE-C RGB,
        - sRGB,
        - WideGamutRGB.

    ---

    \* custom-defined primaries also supported.
- ### Chromatic adaptation transformations matrices:

    [](#chromatic-adaptation-transformations-matrices)

    - Bradford,
    - CIECAT02,
    - CMCCAT2000,
    - Sharp.
    - Von Kries,
    - XYZ Scaling,
- ### White point dictionary of standard illuminants:

    [](#white-point-dictionary-of-standard-illuminants)

    *(2° and 10° standard observer)*

    - A,
    - B,
    - C,
    - D50, D55, D65, D75, D93,
    - E,
    - F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12,
    - LED\_B1, LED\_B2, LED\_B3, LED\_B4, LED\_B5, LED\_BH1, LED\_RGB1, LED\_V1, LED\_V2.
- ### DeltaE difference:

    [](#deltae-difference)

    Check color distance in various algorithms:

    - CIE76,
    - CIE94,
    - CIE00 (CIEDE2000),
    - CMC l:c.
- ### Contrast ratio calculation.

    [](#contrast-ratio-calculation)

Sources
-------

[](#sources)

- [**Bruce Lindbloom** @ brucelindbloom.com](http://www.brucelindbloom.com/)
- [**Color topics for programmers** @ CodeProject.com](https://www.codeproject.com/Articles/1202772/Color-Topics-for-Programmers#CIE_XYZ)
- [**The CIEDE2000 Color-Difference Formula**: Implementation Notes, Supplementary Test Data, and Mathematical Observations | *Gaurav Sharma, Wencheng Wu, Edul N. Dalal* @ rochester.edu](https://hajim.rochester.edu/ece/sites/gsharma/ciede2000/ciede2000noteCRNA.pdf)
- [**The RGB-XYZ Matrix Calculator** @ russellcottrell.com](https://www.russellcottrell.com/photo/matrixCalculator.htm)
- [**Calculate color temperature (CCT) from CIE 1931 xy coordinates** @ waveformlighting.com](https://www.waveformlighting.com/tech/calculate-color-temperature-cct-from-cie-1931-xy-coordinates)
- [**had to know...** Technology Articles @ had2know.org](https://www.had2know.org/technology.html)
- [**Standard Illuminants** - White points of standard illuminants @ Wikipedia.org](https://en.wikipedia.org/wiki/Standard_illuminant#White_points_of_standard_illuminants)
- [**LMS color space** @ wikipedia.org](https://en.wikipedia.org/wiki/LMS_color_space)

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

[](#requirements)

PHP 8.1

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance40

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

703d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b7ac98c5381a6fdd186d23f57126113fa3bf7e7b41077cb352f89fb8cdbd1c38?d=identicon)[tei187](/maintainers/tei187)

---

Top Contributors

[![tei187](https://avatars.githubusercontent.com/u/59267193?v=4)](https://github.com/tei187 "tei187 (113 commits)")

---

Tags

chromatic-adaptationcolor-conversionscolor-distancedelta-ergb-primariesstandard-illuminants

### Embed Badge

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

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

###  Alternatives

[knplabs/knp-menu

An object oriented menu library

1.4k55.8M287](/packages/knplabs-knp-menu)[insenseanalytics/nova-bar-metrics

A Laravel Nova tool for bar chart metrics and frequency distributions.

41125.2k](/packages/insenseanalytics-nova-bar-metrics)

PHPackages © 2026

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