casesandberg / react-color

:art: Color Pickers from Sketch, Photoshop, Chrome, Github, Twitter & more
http://casesandberg.github.io/react-color/
MIT License
11.98k stars 914 forks source link

How to choose black and white from Hue? #810

Open watermellon2018 opened 3 years ago

watermellon2018 commented 3 years ago

Or how i can set custom color in Hue component?

andreseiji commented 3 years ago

Hue is a property of color, that standalone won't define a web color. For the full color using hue, you need either HSL or HSB, either way black would be lightness/brightness set as 0 and white as 100, where H = 0 and S = 0.

Black: H = 0, S = 0, L/B = 0

White: H = 0, S = 0, L/B = 100

https://en.wikipedia.org/wiki/HSL_and_HSV

I do not think your question is related to the repository itself, but more about color theory. Anyway, hope the info helps you.