Martech Zone appsContent Marketing

Maida Launukan Hex, RGB, da RGBA

Wannan kayan aiki ne mai sauƙi don canza launin hexadecimal zuwa ƙimar RGB ko RGBA ko akasin haka. Idan kana canza hex zuwa RGB, Shigar da ƙimar hex azaman #000 or #000000. Idan kana canza RGB zuwa hex, shigar da ƙimar RGB azaman rgb(0,0,0) or rgba(0,0,0,0.1). Na kuma dawo da sunan gama gari don launi.

Hex zuwa RGB da RGB/RGBA zuwa Hex Color Converter

Tukar RGB ke RGB
Color:

Hexadecimal (hex) launuka, RGB launuka, da RGBA launuka duk hanyoyi ne don tantance launuka a ciki HTML da kuma CSS.

  • Launukan hexadecimal an ƙayyade ta amfani da lambar hexadecimal mai lamba shida wanda ke farawa da alamar fam (lamba).#). Lambar ta ƙunshi nau'i-nau'i uku na lambobi hexadecimal biyu, kowannensu yana wakiltar ƙarfin ɗaya daga cikin manyan launuka (ja, kore, da shuɗi). Misali, ana wakilta launin baki kamar #000000 a hexadecimal, kuma launin fari yana wakilta kamar #ffffff.
  • RGB launuka an ƙayyade ta amfani da rgb() aiki, wanda ke ɗaukar dabi'u uku tsakanin 0 da 255 waɗanda ke wakiltar tsananin launuka na farko (ja, kore, da shuɗi). Misali, ana wakilta launin baki kamar rgb(0, 0, 0) a cikin RGB, kuma ana wakilta launin fari kamar rgb(255, 255, 255).
  • RGBA launuka suna kama da launuka na RGB, amma kuma sun haɗa da ƙimar alpha wanda ke ƙayyadaddun gaskiyar launi. Ƙimar alpha lambar ƙima ce tsakanin 0 da 1, inda 0 ta kasance cikakke kuma 1 cikakke ne. Misali, launin fari tare da nuna gaskiya 50% ana wakilta azaman rgba(255, 255, 255, 0.5) in RGBA.

Gabaɗaya, zaku iya amfani da kowane ɗayan waɗannan nau'ikan launi a cikin HTML da CSS, gwargwadon bukatunku. Launukan hexadecimal sun fi guntu da sauƙin karantawa fiye da launukan RGB ko RGBA, kuma duk masu bincike na zamani suna samun goyan bayan su. Launukan RGB da RGBA sun fi bayyanawa, yayin da suke ba ku damar tantance tsananin launuka na farko da kuma nuna gaskiyar launi.

Lokacin yanke shawarar tsarin launi don amfani da shi, yakamata ku yi la'akari da buƙatun aikin ku da damar mai binciken da aka yi niyya. Idan kana buƙatar saka launi tare da nuna gaskiya, ya kamata ka yi amfani da tsarin RGBA. Idan kawai kuna buƙatar tantance tsayayyen launi, zaku iya amfani da ko dai hexadecimal ko tsarin RGB.

Credit to Sunan Wannan Launi don kyakkyawan suna!

Douglas Karr

Douglas Karr shine wanda ya kafa Martech Zone da ƙwararren ƙwararren masani akan canjin dijital. Douglas ya taimaka fara farawa MarTech da dama masu nasara, ya taimaka a cikin ƙwazo na sama da dala biliyan 5 a cikin saye da saka hannun jari na Martech, kuma ya ci gaba da ƙaddamar da nasa dandamali da sabis. Shi ne co-kafa Highbridge, Kamfanin tuntuɓar canji na dijital. Douglas kuma marubuci ne da aka buga na jagorar Dummie da kuma littafin jagoranci na kasuwanci.

Me kuke tunani?

Wannan shafin yana amfani da Akismet don rage spam. Koyi yadda aka sarrafa bayanan bayaninka.

shafi Articles