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.然后由此产生的两位数字的十六进制( “十六进制” )号码是strung汇集成一个单一的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.为Microsoft画图后,你选择颜色,点击颜色菜单,然后编辑的颜色。 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 ,然后翻译2位数字成一个单一的信(即的所有D的和F的来了) ,其中10 = 1 , 11 = b , 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 我的数字生活论坛 .



3 Responses to “Translate and Convert RGB Color Values into Hexadecimal Hex Equivalent” 3回应“翻译和转换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.什么是红利, diy网站管理员,如自己。 Many thanks.许多感谢。

  2. anon别名
    December 5th, 2006 18:07 2006年12月5日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年12月5日18时33分
    3

    Hi sorry anon, the keywords are based on what users search, and is not controllable.喜抱歉,别名,关键词是基于什么用户搜索,而不是可控的。

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> 您可以使用这些标签:的<a href="" title=""> <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 RGB 转换的PANTONE到的RGB - - pantone converter 潘通转换器 - - convert RGB to Pantone 转换RGB到潘东 - - rgb translator 的RGB翻译 - - convert pantone to hex 转换的PANTONE ,以十六进制 - - pantone rgb converter 潘通色卡的RGB转换器 - - hexadecimal translation 十六进制翻译 - - pantone rgb equivalent 潘通色卡的RGB相等于 - - RGB translation 的RGB翻译 - - convert hex to pantone 转换为十六进制,以潘通 - - translate rgb to hex 翻译RGB到十六进制 - - rgb color values RGB颜色值 - - translate rgb 翻译的RGB - - hex color translation 十六进制颜色翻译 - - RGB to pantone conversion RGB到潘东转换 - - Pantone rgb convert 潘通色卡的RGB转换 - - pantone RGB value 潘通色卡的RGB值 - - hex translation 十六进制翻译 - - pantone to hex conversion 潘通色卡,以十六进制转换 - - convert rgb to integer 转换RGB到整数 - - Pantone to RGB Conversion 潘通到的RGB转换 - - rgb pantone converter 潘通色卡的RGB转换器 - - hex color translate 十六进制颜色翻译 - - pantone rgb conversion 潘通色卡的RGB转换 - - hex color translator 十六进制颜色翻译 - - hex code translation 十六进制代码翻译 - - pantone to rgb values 潘通到的RGB值 - - convert pantone to hexadecimal 潘通色卡转换为十六进制 - - hex to pantone converter 十六进制转换到潘东 - - rgb pantone conversion 潘通色卡的RGB转换 - - color hex translation 颜色的十六进制翻译 - - rgb to pantone converter RGB到潘通色卡转换器 - - pantone translation 潘通翻译 - - rgb color translator RGB颜色翻译 - - translate rgb to html 翻译的RGB为HTML - - translate rgb color 翻译RGB颜色 - - pantone to hex converter 潘通色卡,以十六进制转换器 - - rgb color translation RGB颜色翻译 - - translate to rgb 翻译到的RGB - - bgcolor conversion pantone bgcolor转换潘东 - - convert rgb to hex 转换RGB到十六进制 - - convert rgb pantone 转换的RGB潘东 - - rgb to hex formula RGB到十六进制公式 - - translate color 翻译颜色 - - convert hex colors to define custom colors 转换为十六进制的颜色,自定义颜色 - - pantone hex convert 潘通十六进制转换 - - translate color rgb 翻译颜色的RGB - - pantone hex conversion 潘通十六进制转换 - - rgb pantone equivalent 潘通色卡的RGB相等于 - - translate RGB to HTML color 翻译RGB到HTML颜色 - -