ColourUtils is a utility library for Roblox Studio that provides a number of functions for working with colours.
The library contains methods to manipulate standard Color3s, as well as convert them back and forth between formats; such as Hex and Integer (great for Discord!).
ColourUtils can also generate colour palettes, blend colours together, and even simulate colour blindness. In combination with the built-in accessibility-focused “submodules,” ColourUtils can be used to find and generate the perfect and most accessible colours for your project.
Saturation methods to either saturate or desaturate a colour.
Tailwind CSS-style palette generator - Generates 10 swatches, given a base colour, and returns a TailwindPalette object (see the docs for more details).
Changed
Updated the docs for Hex and Int. The converter methods were previously documented in PascalCase, but they should have been documented in camelCase.
The Palette.Monochromatic method now accepts an optional second parameter, swatches, which defaults to 3. This is to allow for more control over the number of swatches generated.
Warning: The behaviour of monochromatic has been changed to allow for more control over the number of swatches generated.
The new behaviour will return X amount of swatches, including the base colour. The results do not necessarily include a single lighter and darker swatch, and the resulting array is now sorted from darkest to lightest (most vibrant).
Blend.Transparency - Applies “transparency” to a Color3, where the resulting colour simulates the process of overlaying a colour with transparency to a given background.
Hex.fromHexRGBA - Converts a hex code with an alpha channel to a Color3. You must pass a background colour to this method if your background is not black (Color3.new(0, 0, 0))!
it’s not built into the library. the lch methods just convert an lch table to color3 and back; however, I found this site that seems to implement a way of lerping lch values
if lerping in other colour spaces is something you’d like, I can add it to the to-do list
Yes! I would highly appreciate it if you added lerping in other colour spaces since lerping in regular RGB space creates some weird colours on the in-betweens.