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 我的數字生活論壇 .



4 Responses to “Translate and Convert RGB Color Values into Hexadecimal Hex Equivalent”第4響應“翻譯和RGB顏色轉換成十六進制值六角等效”

  1. Lewis Stratton劉易斯頓
    April 11th, 2006 11:59 2006年4月11日11:59
    1

    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.許多感謝。

  2. anon不久
    December 5th, 2006 18:07 2006年十二月五日18:07
    2

    It’s damn misleading to stuff the word “pantone” into you keywords when you don’t talk about it at all.這該死的誤導性的東西用“彩通”為您的關鍵字時,你不談論它在所有。

  3. admin管理員
    December 5th, 2006 18:33 2006年十二月五日18:33
    3

    Hi sorry anon, the keywords are based on what users search, and is not controllable.您好抱歉不久,關鍵字是基於用戶的搜索,而不是控制。

  4. Ace Frye皇牌弗萊
    September 5th, 2008 23:29 2008年九月五日23:29
    4

    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 ”

Leave a Reply留下一個回复

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用這些標籤: href="" title="">的<a <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> “刪除日期時間= “ ” “的<em> <i> <q cite=""> <strike>的<strong>

Subscribe without commenting訂閱沒有評論


Custom Search

New Articles新文章

Incoming Search Terms for the Article收到的搜索字詞的文章

convert pantone to hex 轉換為十六進制潘東 - - rgb color values RGB顏色值 - - pantone rgb values 潘東的RGB值 - - pantone to rgb values 潘通到RGB值 - - hex translation 十六進位翻譯 - - pantone to rgb 潘通到RGB - - RGB TO HEX formula 以十六進制的RGB公式 - - equivalent of colors in hexadecimal 相當於十六進制顏色 - - translate hexadecimal 翻譯十六進制 - - pantone color translation 潘通色彩翻譯 - - convert hex to pantone 十六進制轉換為潘東 - - pantone color converter 潘通色彩轉換 - - Convert integer to rgb 轉換整數到RGB - - convert rgb to integer 轉換為整數的RGB - - COLOR TRANSATE 彩TRANSATE - - google hex translation 谷歌翻譯十六進制 - - convert pantone to rgb 轉換到RGB潘東 - - pantone to rgb converter 潘通到RGB轉換器 - - rgb translator 三原色翻譯 - - hexadecimal translation 十六進位翻譯 - - pantone hexadecimal values 潘通十六進制值 - - pantone rgb equivalents 潘東的RGB等值 - - rgb-pantone converter 三原色,潘東轉換 - - convert rgb to pantone 轉換的RGB到潘東 - - convert hexadecimal code in to rgb equivalent 十六進位碼轉換中的RGB等值 - - convert a number to hex in pl/sql 轉換為十六進制數在特等/數據庫 - - hex color translator 十六進制顏色的翻譯 - - hex to color translate 十六進制顏色翻譯 - - hex translate 十六進位翻譯 - - translate rgb 翻譯的RGB - - rgb color translator RGB色彩翻譯 - - hexadecimal color translation 十六進制顏色翻譯 - - hexadecimal equivalent to blue 十六進制相當於藍色 - - colour on email hexadecimal 膚色電子郵件進制 - - convert pantone color 轉換的Pantone色 - - how to convert color having rgb value to 如何轉換後的RGB顏色值 - - rgb into html 三原色到HTML - - rgb translate 三原色翻譯 - - Hexadecimal to Pantone 十六進位,以潘東 - - hex color translation 十六進制顏色翻譯 - - hex to pantone converter 十六進制轉換為潘東 - - översättning hex rgb översättning十六進位的RGB - - convert rgb to microsoft word 轉換的RGB到Microsoft Word - - hex code value pantone 十六進位代碼的價值潘東 - - "pantone hexadecimal values" “潘東十六進制值” - - é hex equivalent é相當於十六進制 - - color translate rgb hex 翻譯的RGB顏色的十六進制 - - color converter pantone to rgb 潘通色彩轉換到RGB - - compare between pantone and hexadecimal 比較之間的Pantone和十六進制 - - convert pantone to word 以轉換潘東字 - -