Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Add methods for converting HEX/RGB to HSLuv #22

Open
badfeather opened this issue Jan 31, 2023 · 0 comments
Open

Feature request: Add methods for converting HEX/RGB to HSLuv #22

badfeather opened this issue Jan 31, 2023 · 0 comments

Comments

@badfeather
Copy link

It would be very handy to have some methods to convert HEX or RGB to HSLuv colors in order to generate palettes based on brand colors for projects. As it is, I'm usually pasting the hex colors on the hsluv.org site to get the values, which is a bit tedious. Something like hsluv.fromHex([hex color]), hsluv.fromRGB([RGB color]), or if it can be automatically detected, hsluv.create([color]). Other color spaces like HSL might also be useful.

Thanks for working on the project. It's helped me generate accessible palettes for projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant