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/
You can install this package by using composer.
composer require mixable/color-utils