{"id":2251,"date":"2017-04-04T22:06:38","date_gmt":"2017-04-04T22:06:38","guid":{"rendered":"http:\/\/cssreset.com\/?p=2251"},"modified":"2017-04-02T22:06:59","modified_gmt":"2017-04-02T22:06:59","slug":"how-to-convert-your-hex-color-codes-to-rgba","status":"publish","type":"post","link":"https:\/\/cssdeck.com\/blog\/how-to-convert-your-hex-color-codes-to-rgba\/","title":{"rendered":"How to Convert Your Hex Color Codes to RGB"},"content":{"rendered":"<p>Each developer has his or her own preference for how they like to reference colors in their CSS code. Some developers are partial to using hex codes (a six character code of letters and numbers preceded by a #), while others prefer to use rgb codes (rgb codes are made up of three number values to indicate the amount of red, green, and blue in a color). \u00a0The problem with the fact that both hex and rgb codes are widely used is that there&#8217;s no easy or simple way to convert one type of color code to the other.<\/p>\n<p>Luckily for us developers, web apps exist that will quickly convert hex to rgb and vice versa in a matter of seconds (we didn&#8217;t include any rgba converters on this list, but remember &#8212; rgba is the same color as rgb, just with the option for transparency. To turn rgb into rgba you&#8217;ll just need to write rgba instead of rgb, then add a fourth value to the end of your list of rgb values in the parentheses. The value should be between 0 and 1 depending on how opaque you want your color to be. 1 for completely opaque, 0 for completely transparent). Take a look at the following list of platforms that will perform this conversion quickly and easily:<\/p>\n<p>1. <a href=\"http:\/\/www.webpagefx.com\/web-design\/hex-to-rgb\/\">COLORRRS<\/a><\/p>\n<p><a href=\"http:\/\/www.webpagefx.com\/web-design\/hex-to-rgb\/\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2254 aligncenter\" alt=\"Screen Shot 2017-02-22 at 3.37.41 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-3.37.41-PM.png\" width=\"782\" height=\"348\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-3.37.41-PM.png 782w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-3.37.41-PM-300x133.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-3.37.41-PM-180x80.png 180w\" sizes=\"(max-width: 782px) 100vw, 782px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>This website converts hex to rgb. All you need to do is enter the hex code into the first line and watch as the rgb conversion appears milliseconds later on the line below. The background color of the page will change to reflect the color you&#8217;re trying to convert.<\/p>\n<p>2. <a href=\"http:\/\/www.rapidtables.com\/convert\/color\/hex-to-rgb.htm\">Rapid Tables<\/a><\/p>\n<p><a href=\"http:\/\/www.rapidtables.com\/convert\/color\/hex-to-rgb.htm\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2255 aligncenter\" alt=\"Screen Shot 2017-02-22 at 3.41.42 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-3.41.42-PM.png\" width=\"942\" height=\"908\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-3.41.42-PM.png 942w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-3.41.42-PM-300x289.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-3.41.42-PM-180x173.png 180w\" sizes=\"(max-width: 942px) 100vw, 942px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Rapid Tables offers a more complex hex to rgb converter &#8212; not only does it convert from hex to rgb, but it also gives you the name of the CSS color and a small swatch preview of the color. The site also gives you the option to converts from rgb to hex, along with a handy conversion chart and explanations of the conversions.<\/p>\n<p>3. <a href=\"http:\/\/www.rgbtohex.net\/hextorgb\/\">Hex to RGB<\/a><\/p>\n<p><a href=\"http:\/\/www.rgbtohex.net\/hextorgb\/\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2256 aligncenter\" alt=\"Screen Shot 2017-02-22 at 3.57.31 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-3.57.31-PM.png\" width=\"664\" height=\"214\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-3.57.31-PM.png 664w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-3.57.31-PM-300x96.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-3.57.31-PM-180x58.png 180w\" sizes=\"(max-width: 664px) 100vw, 664px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Hex to RGB is a simple converter that also offers an rgb to hex conversion.<\/p>\n<p>4. <a href=\"https:\/\/www.w3schools.com\/colors\/colors_converter.asp\" target=\"_blank\">W3 Schools<\/a><\/p>\n<p><a href=\"https:\/\/www.w3schools.com\/colors\/colors_converter.asp\"><img decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-2257 aligncenter\" alt=\"Screen Shot 2017-02-22 at 3.58.55 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-3.58.55-PM-1024x512.png\" width=\"1024\" height=\"512\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-3.58.55-PM-1024x512.png 1024w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-3.58.55-PM-300x150.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-3.58.55-PM-180x90.png 180w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-3.58.55-PM.png 1534w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>W3 Schools is a popular site that hosts tons of coding education content and resources for developers. Their rgb to hex converter doesn&#8217;t just provide the rgb and hex values of a color, but also the hsl, the hwb, cmyk, and ncol. Basically, if there&#8217;s any way to define a color in your CSS, W3 Schools&#8217; converter has it covered.<\/p>\n<p>5. <a href=\"http:\/\/uicolor.xyz\/#\/hex-to-ui\" target=\"_blank\">UI Color<\/a><\/p>\n<p><a href=\"http:\/\/uicolor.xyz\/#\/hex-to-ui\"><img decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-2258 aligncenter\" alt=\"Screen Shot 2017-02-22 at 4.01.16 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-4.01.16-PM-1024x310.png\" width=\"1024\" height=\"310\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-4.01.16-PM-1024x310.png 1024w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-4.01.16-PM-300x90.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-4.01.16-PM-180x54.png 180w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-22-at-4.01.16-PM.png 1070w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>UI Color is another site that simply converts hex to rgb and vice versa.<\/p>\n<div class=\"wp-socializer wpsr-share-icons \" data-lg-action=\"show\" data-sm-action=\"show\" data-sm-width=\"768\" ><h3>Share and Enjoy !<\/h3><div class=\"wpsr-si-inner\"><div class=\"wpsr-counter wpsrc-sz-32px\" style=\"color:#000\"><span class=\"scount\"><span data-wpsrs=\"\" data-wpsrs-svcs=\"facebook,twitter,linkedin,pinterest,print,pdf\">0<\/span><\/span><small class=\"stext\">Shares<\/small><\/div><div class=\"socializer sr-popup sr-32px sr-circle sr-opacity sr-pad sr-count-1 sr-count-1\"><span class=\"sr-facebook\"><a rel=\"nofollow\" href=\"https:\/\/www.facebook.com\/share.php?u=\" target=\"_blank\"  title=\"Share this on Facebook\"  style=\"color: #ffffff\" ><i class=\"fab fa-facebook-f\"><\/i><span class=\"ctext\"><span data-wpsrs=\"\" data-wpsrs-svcs=\"facebook\">0<\/span><\/span><\/a><\/span>\n<span class=\"sr-twitter\"><a rel=\"nofollow\" href=\"https:\/\/twitter.com\/intent\/tweet?text=%20-%20%20\" target=\"_blank\"  title=\"Tweet this !\"  style=\"color: #ffffff\" ><i class=\"fab fa-twitter\"><\/i><\/a><\/span>\n<span class=\"sr-linkedin\"><a rel=\"nofollow\" href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=\" target=\"_blank\"  title=\"Add this to LinkedIn\"  style=\"color: #ffffff\" ><i class=\"fab fa-linkedin-in\"><\/i><\/a><\/span>\n<span class=\"sr-pinterest\"><a rel=\"nofollow\" href=\"https:\/\/www.pinterest.com\/pin\/create\/button\/?url=&amp;media=&amp;description=\" target=\"_blank\"  title=\"Submit this to Pinterest\"  style=\"color: #ffffff\" data-pin-custom=\"true\"><i class=\"fab fa-pinterest\"><\/i><span class=\"ctext\"><span data-wpsrs=\"\" data-wpsrs-svcs=\"pinterest\">0<\/span><\/span><\/a><\/span>\n<span class=\"sr-print\"><a rel=\"nofollow\" href=\"https:\/\/www.printfriendly.com\/print?url=\" target=\"_blank\"  title=\"Print this article \"  style=\"color: #ffffff\" ><i class=\"fa fa-print\"><\/i><\/a><\/span>\n<span class=\"sr-pdf\"><a rel=\"nofollow\" href=\"https:\/\/www.printfriendly.com\/print?url=\" target=\"_blank\"  title=\"Convert to PDF\"  style=\"color: #ffffff\" ><i class=\"fa fa-file-pdf\"><\/i><\/a><\/span><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Each developer has his or her own preference for how they like to reference colors in their CSS code. Some developers are partial to using hex codes (a six character code of letters and numbers preceded by a #), while [&#8230;]<\/p>\n<p><a class=\"more-link article\" href=\"https:\/\/cssdeck.com\/blog\/how-to-convert-your-hex-color-codes-to-rgba\/\" title=\"Click to read 'How to Convert Your Hex Color Codes to RGB'\">Read Article<\/a><\/p>\n","protected":false},"author":18,"featured_media":2254,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,42],"tags":[],"_links":{"self":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/2251"}],"collection":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/comments?post=2251"}],"version-history":[{"count":2,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/2251\/revisions"}],"predecessor-version":[{"id":2259,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/2251\/revisions\/2259"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/media\/2254"}],"wp:attachment":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/media?parent=2251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/categories?post=2251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/tags?post=2251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}