Translate and Convert RGB Color Values into Hexadecimal Hex Equivalent翻譯和RGB色彩轉換成十六進制值相當於十六進制
In a html web page, there is code such as <body bgcolor=#ffffff> or color=”#000000″ .在一個HTML網頁,有代碼,如<body bgcolor=#ffffff>或顏色= “ # 000000 ” 。 The “ffffff” is the colour RGB hexadecimal value which will translate into a white, and “000000″ is black.該“ ffffff ”是顏色的RGB十六進制值將變成白色,和“ 000000 ”是黑色的。
The RGB colour code must be converted into hexadecimal (Base-16) number in order for the browsers to understand them.在RGB色彩代碼必須轉換成十六進制(基數- 16 )編號,以便瀏覽器,以了解他們。 Then the resulting two-digit hexadecimal (”hex” for short) numbers are strung together into a single six-digit code.然後由此產生的兩位數字的十六進位( “十六進制”短期)數字串成成一個6位數的代碼。 So in the example above, the first two “f”s and “0″s stand for the red value, the next two stand for green, and the last two for blue.因此在上面的例子,前兩個“ F ”類s和“ 0 ”的立場紅色的價值,在未來兩年為綠色的立場,並在過去兩年為藍色。
It’s possible to get the RGB hex value from a colour chart.這是可能得到的RGB十六進位值從膚色圖表。 But if you encounter a favorite colour, it’s possible to get its RGB value and convert it into hex code.但是,如果你遇到最喜歡的顏色,有可能獲得其RGB值,並轉換成十六進制代碼。
To get the RGB value of a colour from a photo, simply open the photo or picture in Microsoft Paint or any image processing software.要獲得RGB值的顏色從照片,只需打開的照片或圖片在Microsoft畫圖或任何圖像處理軟件。 Use the pick color tools to pick the colour and the RGB value should be shown.使用顏色選擇工具選擇的顏色和RGB值應顯示。 For Microsoft Paint, after you pick the colour, click on Colors menu, and then Edit Colors.對於微軟塗料後,你選擇膚色,色彩點擊菜單,然後修改顏色。 On the window shown, click on Define Custom Colors, and you will see the RGB value of the color you just selected shown there.在窗口顯示,點擊自定義顏色,你將看到的RGB值的顏色選擇你剛才表現出有。
For translation/conversion to Hex calculation, we will use the color of lovely sea green with the RGB values R=51, G=219, B=153 as example.翻譯/轉換為十六進制計算,我們將使用顏色的可愛的海與綠色的RGB值R = 51地下= 219 ,乙= 153為例。
To translate the RGB value into hexadecimal value, first take the value of Red (51) and divide it by 16.把RGB值成十六進制值,首先考慮的價值紅( 51歲)和分裂它16 。 The balance is 3.1875.餘額3.1875 。 The integer, 3, will be the first number in the hexadecimal formula.整數, 3日,將首先在一些十六進制的公式。 The remainder (0.1875) should be multiplied by 16, which also results in the number 3.其餘( 0.1875 )應乘以16 ,這也導致一些3 。 So, 51 translates to 33 in hex.因此, 51轉化為33個十六進制。
If you get integers and remainders that translate into from 10 or 15, then translate the two-digit number into a single letter (that’s where all the d’s and f’s come in), where 10=A, 11=B, 12=C, 13=D, 14=E, and 15=F.如果你整數和其餘的轉化從10或15 ,然後把兩個數字為一個單一的信(這就是所有德公司和f的來) ,其中10 =甲, 11 =乙, 12 = C的, 13 = D的, 14 = E和15 =樓 This becomes relevant to our lovely sea green when we calculate the hexadecimal equivalent of its Green value, which is 219.這已成為我們的有關可愛的綠色海洋時,我們計算出的十六進位相當於其綠色的價值,這是219 。 When we divide it by 16, we get 13.69.當我們鴻溝它16 ,我們得到13.69 。 We translate 13 to D, and then multiply the remainder - 0.69 - by 16, and get 11, which equals B.我們把13至D ,然後乘以剩餘-0 .69- 16 ,並獲得11個,相當於灣
Repeat this formula for the Blue value, and then string them together (you should get 33DB99).重複此公式的藍值,然後串在一起(你應該33DB99 ) 。 33DB99 is the RGB Hexadecimal value for the colour which can be used in the html web page. 33DB99是的RGB值為十六進制的顏色,可用於在HTML網頁。
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要說明:這是一台機器翻譯網頁這是“原樣”提供,無保修。 Machine translation may be difficult to understand.機器翻譯可能很難理解。 Please refer to請參閱 original English article英文原文的文章 whenever possible.只要有可能。
Share and contribute or get technical support and help at共享和貢獻或獲得技術支持和幫助 My Digital Life Forums 我的數字生活論壇 . 。
Related Articles相關文章
- WordPress Charset Encoding Problem After Upgrading to Version 2.2 WordPress的字符集編碼的問題後,升級到2.2版
- Oracle PL/SQL ORA-00947 Not Enough Values Error甲骨文特等/數據庫口腔00947不夠值誤差
- Tweak (Increase or Change) Maximum Simultaneous HTTP and Downloads Connections to Web Server調整(增加或變更)最大同時HTTP和下載連接到Web服務器
- Window Live Translator Launched by Microsoft窗口活譯者推出由微軟
- Download TellMeText v1.1.0 for Easy SMS Reading in Windows Mobile Devices下載TellMeText v1.1.0 ,便於閱讀短信在Windows移動設備
- LG.Philips Introduces 16 Million Color Flexible Electronic Paper LG飛利浦推出1600萬色柔性電子紙
- Change the Frequency or Backup Interval of System Restore in Vista and XP改變頻率或備份間隔的系統還原在Vista和XP
- How to Convert Character Set and Collation of WordPress Database如何轉換字符集和校對的WordPress的數據庫
- Free Download - Browse and Edit XML Documents Easily with XML Notepad 2007免費下載-瀏覽和修改X ML文檔輕鬆地使用X ML記事本2 007年
- Disable and Bypass MegaUpload Country Download Slots Limit禁用和繞行MegaUpload國家限制下載插槽

































April 11th, 2006 11:59 2006年4月11日11:59
What a fantastic page.多麼美妙頁。 The web is full of ready-made converter tools, but I love to know HOW things are done.該網站是完全現成的轉換工具,但我喜歡了解事情要做。 Your page on RGB to Hex conversion is well written and straightforward.您的網頁上,以十六進制的RGB轉換以及書面和簡單。
What a bonus to DIY webmasters such as myself.什麼獎金音響系統管理員,如自己。 Many thanks.許多感謝。
December 5th, 2006 18:07 2006年十二月五日18:07
It’s damn misleading to stuff the word “pantone” into you keywords when you don’t talk about it at all.這該死的誤導性的東西用“彩通”為您的關鍵字時,你不談論它在所有。
December 5th, 2006 18:33 2006年十二月五日18:33
Hi sorry anon, the keywords are based on what users search, and is not controllable.您好抱歉不久,關鍵字是基於用戶的搜索,而不是控制。
September 5th, 2008 23:29 2008年九月五日23:29
Thank you sir, this is exactly what I was looking for.謝謝主席先生,這正是我一直在尋找。 Plus, you are the top result on google when searching “how to translate rgb into hex”另外,您是頂端的結果時,谷歌搜索“如何翻譯成十六進制的RGB ”