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 我的数字生活论坛 . 。
Related Articles相关文章
- Meaning of TVAnts Buffer Progress Bar Colors含义tvants缓冲进度栏的颜色
- HTML Color Names HEX Codes Chart Table HTML颜色名称,十六进制代码表图
- Windows Vista No Activation OEM ID for Various Manufacturers Windows Vista无法激活的OEM ID为各制造商
- View, Edit and Convert Canon EOS 400D (Digital Rebel XTi) RAW Images in RawShooter检视,编辑和转换佳能EOS 400d (数字叛军xti ) RAW图像在rawshooter
- WordPress Charset Encoding Problem After Upgrading to Version 2.2在WordPress字符的编码问题后,升级到2.2版
- Oracle PL/SQL ORA-00947 Not Enough Values Error甲骨文PL / SQL的库存- 00947没有足够的价值观错误
- SPF Validation - Sender Profile Framework Testing and Checking Tool SPF级验证-发件人的个人资料框架的测试和检查工具
- Get the Color Code with Instant Eyedropper得到的颜色代码与即时滴管
- AptEdit Pro 4.6 Text, HEX, Drive and HTML Professional Edito Free Registration Serial Key by GOTD aptedit亲4.6文本,十六进制,驱动器和HTML专业edito免费注册串行的关键由gotd
- Window Live Translator Launched by Microsoft窗口活翻译推出的微软



















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.什么是红利, diy网站管理员,如自己。 Many thanks.许多感谢。
December 5th, 2006 18:07 2006年12月5日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年12月5日18时33分
Hi sorry anon, the keywords are based on what users search, and is not controllable.喜抱歉,别名,关键词是基于什么用户搜索,而不是可控的。