: One RGB color could only match single one HSL color? I am wondering if there is single one matched HSL color for a given RGB color? Based on existing formula converting RGB to HSL, it is
I am wondering if there is single one matched HSL color for a given RGB color?
Based on existing formula converting RGB to HSL, it is yes.
However, I want to know if my assertion above is true?
More posts by @Si6392903
1 Comments
Sorted by latest first Latest Oldest Best
Relying solely on common sense:
RGB is defined by
Red ranges from 0 to 255 (256 options)
Green ranges from 0 to 255 (256 options)
Blue ranges from 0 to 255 (256 options)
Total number of RGB options = 256*256*256 = 16,777,216
HSL is defined by:
Hue - ranges from 0 to 359 (360 options)
Saturation - ranges from 0 to 100 (101 options)
Lightness(luminosity) - ranges from 0 to 100 (101 options)
Total number of HSL options = 360*101*101 = 3,672,360
My guess here is that since the total number of RGB colors is much higher than that of HSL colors, it's impossible to have 1 - 1 correspondence between the formats.
Will a convertor convert every RGB value to an HSL value - absolutely - it will round off to the closest value it can assign.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.