innmind/colour
A small PHP library for representing and manipulating colours as immutable value objects. Parse hex, RGB and HSL values, convert between colour models and compare colours with a clean API that fits the Innmind ecosystem.
innmind/colour provides immutable value objects for working with colours in PHP. It lets you model colours in different spaces—such as RGB, HSL, and hexadecimal—and convert between them without losing precision.
Designed for the InnMind ecosystem, it keeps colour handling predictable and testable, whether you are generating themes, validating user input, or storing colours in your domain model.
How can I help you explore Laravel packages today?