mixable/color-utils

PHP utilities to convert any values between RGB, HSL, CMYK, YUV and HEX colors.

Maintainers

Package info

github.com/mixable/color-utils

pkg:composer/mixable/color-utils

Statistics

Installs: 20 103

Dependents: 1

Suggesters: 0

Stars: 7

Open Issues: 0

1.0.5 2024-06-06 11:56 UTC

This package is auto-updated.

Last update: 2026-03-06 15:43:26 UTC


README

PHP class to convert any values between RGB, HSL, CMYK, YUV and HEX colors.

This package also provides some calculations on color to handle readability for colored or light and dark backgrounds.

More details are available at:
https://mixable.blog/adjust-text-color-to-be-readable-on-light-and-dark-backgrounds-of-user-interfaces/
https://mixable.blog/black-or-white-text-on-a-colour-background/

Installation

You can install this package by using composer.

composer require mixable/color-utils