HSL से HEX कन्वर्टर
हमारे बारे में
HSL (hue, saturation, lightness) designer-friendly cylinder है: hue 0–360 wheel पर रंग परिवार चुनता है, इसीलिए CSS colour functions और design systems shades बनाने के लिए HSL में सोचते हैं। HEX में बदलना: hEX CSS का compact notation है: #RRGGBB, प्रति channel एक byte, 3-digit shorthand हर nibble को double करता हुआ (#F00 = #FF0000)। Converter HSL input को parse करता है (यह अन्य notations को भी सहता है, क्योंकि असली दुनिया की colour strings मिली-जुली आती हैं), standard colour maths से RGB के ज़रिए बदलता है, और पूरी units में round करता है जैसे CSS और design tools दिखाते हैं — अन्य converters की तुलना में sub-percent precision अंतर rounding है, error नहीं।
अक्सर पूछे जाने वाले सवाल
क्या HSL से HEX conversion exact है?
Colour maths exact है; displayed values integers/whole percents में rounded हैं जैसे tools universally दिखाते हैं। Inverse conversion से वापस लौटना ज़्यादा से ज़्यादा एक unit अलग हो सकता है।
Print (CMYK) colours क्यों duller दिखते हैं?
स्याही काग़ज़ पर सबसे चमकीले screen रंग नहीं बना सकती (gamut)। CMYK values सबसे करीबी printable अनुमान हैं, वही रंग नहीं।