{"id":271,"date":"2016-04-09T10:15:54","date_gmt":"2016-04-09T10:15:54","guid":{"rendered":"http:\/\/www.gtechbooster.com\/?p=271"},"modified":"2026-01-03T17:35:51","modified_gmt":"2026-01-03T17:35:51","slug":"hex-color-code","status":"publish","type":"post","link":"https:\/\/gtechbooster.com\/hex-color-code\/","title":{"rendered":"Hex Color: explaining hexadecimal number used in HTML, CSS, SVG on the web"},"content":{"rendered":"\n<p>A hex color also known as hex triplet is a six-digit, three-byte hexadecimal number used in HTML, CSS, SVG, and other computing applications to represent colors. The bytes represent the red, green and blue components of the color. <\/p>\n\n\n\n<div class=\"gtech-migrated-from-ad-inserter-placement-2\" style=\"text-align: center;\" id=\"gtech-3348796806\"><div style=\"margin-right: auto;margin-left: auto;text-align: center;\" id=\"gtech-1026266463\"><a data-bid=\"1\" data-no-instant=\"1\" href=\"https:\/\/gtechbooster.com\/linkout\/17207\" rel=\"noopener\" class=\"notrack\" aria-label=\"26001\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/gtechbooster.com\/media\/2023\/01\/26001.jpeg\" alt=\"\"  srcset=\"https:\/\/gtechbooster.com\/media\/2023\/01\/26001.jpeg 1024w, https:\/\/gtechbooster.com\/media\/2023\/01\/26001-768x960.jpeg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" width=\"500\" height=\"625\"  style=\"display: inline-block;\" \/><\/a><\/div><\/div><p>One byte represents a number in the range 00 to FF (in hexadecimal notation), or 0 to 255 in decimal notation. This represents the least (0) to the most (255) intensity of each of the color components. Indicating that colors for the web are specified in the True Color (24-bit RGB) color scheme.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What comes to mind when you see; #1A1B1B<\/h2>\n\n\n\n<p>Televisions, monitors and virtually every electronic color display unit; displays color by combining Red, Green and Blue light known as RGB or its equivalent.<\/p>\n\n\n\n<p><span class=\"_Tgc\">The RGB color model is an additive color model in which red, green, and blue light are added together in various ways to reproduce a broad array of colors. Typical RGB input devices are color televisions, video cameras, image scanners, video games devices and digital cameras.\u00a0<\/span><\/p>\n\n\n\n<p>This RGB was created to display color of up to 255-bit.&nbsp;That is; you can use colors by setting arrays from 0 to 255 of red, blue and green light to obtain any color.<\/p>\n\n\n\n<p>For example, rgb (255,0,0) is displayed as <span style=\"color: #ff0000;\"><strong>red<\/strong><\/span>, because red is set to its highest value (255) and the others (<span style=\"color: #00ff00;\"><strong>green<\/strong><\/span><strong> <\/strong>and <span style=\"color: #0000ff;\"><strong>blue<\/strong><\/span><strong> <\/strong>) are set to 0.<\/p>\n\n\n\n<p>The important thing you need to know about hex codes is that they are not&nbsp; based on ten digits (0 to 9), they are based on 16 digits (0 to F). Six numbers and Six alphabets.&nbsp;<\/p>\n\n\n\n<p>Hex was originally; a <strong># <\/strong>sign with 6 other numbers. The <strong># <\/strong>sign to tell the compiler or assembler it is dealing with Hex Color.<\/p>\n\n\n\n<p>The 6 figures were to be 1, 2, 3, 4, 5, 6, 7, 8 and 9. with every two of these numbers representing; <strong>Red<\/strong>, <strong>Green<\/strong> and <strong>Blue<\/strong>. As in;<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69d446b5979be&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69d446b5979be\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1125\" height=\"135\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/gtechbooster.com\/media\/2016\/04\/255.png\" alt=\"\" class=\"wp-image-78305\" srcset=\"https:\/\/gtechbooster.com\/media\/2016\/04\/255.png 1125w, https:\/\/gtechbooster.com\/media\/2016\/04\/255-768x92.png 768w\" sizes=\"auto, (max-width: 1125px) 100vw, 1125px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69d446b5985ca&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69d446b5985ca\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1125\" height=\"136\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/gtechbooster.com\/media\/2016\/04\/rgb.png\" alt=\"\" class=\"wp-image-78307\" srcset=\"https:\/\/gtechbooster.com\/media\/2016\/04\/rgb.png 1125w, https:\/\/gtechbooster.com\/media\/2016\/04\/rgb-768x93.png 768w\" sizes=\"auto, (max-width: 1125px) 100vw, 1125px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p><b>That is a <span style=\"color: #000000;\">hex color<\/span> of&nbsp; <\/b><b>#<\/b><span style=\"color: #ff0000;\"><b>11<\/b><span style=\"color: #00ff00;\"><b>11<\/b><\/span><\/span><b><span style=\"color: #0000ff;\">11<\/span>&nbsp;&nbsp;&nbsp;&nbsp; <\/b><b>= <\/b><b>rgb<\/b> <span style=\"color: #ff0000;\"><b>17<\/b><\/span><b>,<\/b><span style=\"color: #00ff00;\"><b>17<\/b><\/span><b>,<\/b><span style=\"color: #0000ff;\"><b>17<\/b><\/span><\/p>\n\n\n\n<p>But there was a constraint. In that, if we used numbers only, we would only be able to represent up to 99 in two digits with the digits (0 to 9).&nbsp;<\/p>\n\n\n\n<p>To make hex code; able to display up to 255-bit of color and meet with rgb<b>,&nbsp; <\/b>&nbsp;A, B, C, D, E and F were adopted.&nbsp;Where;&nbsp;<b>A = 10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; B = 11&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C = 12&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; D = 13&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; E = 14&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; F = 15 &nbsp;<\/b>Becomes the secret recipe.&nbsp;This made the trick;<\/p>\n\n\n\n<div class=\"wp-block-presto-player-reusable-edit\"><!--presto-player:video_id=47--><figure class=\"wp-block-video presto-block-video  presto-provider-youtube\" style=\"--plyr-color-main: var(--presto-player-highlight-color, #0c4c8a); --presto-player-logo-width: 132px; \">\n\t<presto-player \n\t\tpreset='{&quot;id&quot;:1,&quot;name&quot;:&quot;Default&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;icon&quot;:&quot;format-video&quot;,&quot;skin&quot;:&quot;modern&quot;,&quot;play-large&quot;:true,&quot;rewind&quot;:true,&quot;play&quot;:true,&quot;fast-forward&quot;:true,&quot;progress&quot;:true,&quot;current-time&quot;:true,&quot;mute&quot;:true,&quot;volume&quot;:true,&quot;speed&quot;:false,&quot;pip&quot;:false,&quot;fullscreen&quot;:true,&quot;captions&quot;:false,&quot;reset_on_end&quot;:true,&quot;auto_hide&quot;:true,&quot;show_time_elapsed&quot;:false,&quot;captions_enabled&quot;:false,&quot;save_player_position&quot;:true,&quot;sticky_scroll&quot;:false,&quot;sticky_scroll_position&quot;:&quot;bottom right&quot;,&quot;on_video_end&quot;:&quot;select&quot;,&quot;play_video_viewport&quot;:false,&quot;hide_youtube&quot;:false,&quot;lazy_load_youtube&quot;:false,&quot;hide_logo&quot;:false,&quot;border_radius&quot;:0,&quot;caption_style&quot;:&quot;&quot;,&quot;caption_background&quot;:&quot;&quot;,&quot;is_locked&quot;:true,&quot;cta&quot;:[&quot;&quot;],&quot;watermark&quot;:[&quot;&quot;],&quot;search&quot;:[&quot;&quot;],&quot;email_collection&quot;:[&quot;&quot;],&quot;action_bar&quot;:[&quot;&quot;],&quot;created_by&quot;:1,&quot;created_at&quot;:&quot;2025-10-19 08:01:03&quot;,&quot;updated_at&quot;:&quot;2025-10-19 08:01:03&quot;,&quot;deleted_at&quot;:&quot;&quot;}'\n\t\tbranding='{&quot;logo&quot;:&quot;https:\\\/\\\/gtechbooster.com\\\/media\\\/2025\\\/01\\\/logo-wshd.svg&quot;,&quot;color&quot;:&quot;#0c4c8a&quot;,&quot;logo_width&quot;:132,&quot;player_css&quot;:&quot;&quot;}'\n\t\tchapters='[]'\n\t\toverlays='[]'\n\t\ttracks='[]'\n\t\tblock-attributes='{&quot;playsInline&quot;:true,&quot;id&quot;:47,&quot;src&quot;:&quot;https:\\\/\\\/www.youtube.com\\\/watch?v=y6XCgws7ebQ&quot;,&quot;preset&quot;:1,&quot;video_id&quot;:&quot;y6XCgws7ebQ&quot;,&quot;visibility&quot;:&quot;public&quot;,&quot;color&quot;:&quot;#00b3ff&quot;,&quot;mutedPreview&quot;:{&quot;enabled&quot;:false,&quot;captions&quot;:false},&quot;mutedOverlay&quot;:{&quot;enabled&quot;:false,&quot;src&quot;:&quot;&quot;,&quot;width&quot;:200,&quot;focalPoint&quot;:{&quot;x&quot;:0.5,&quot;y&quot;:0.5}},&quot;mutedOverlayType&quot;:&quot;text&quot;,&quot;mutedOverlayText&quot;:&quot;Click to play&quot;,&quot;mutedOverlayImageWidth&quot;:200,&quot;chapters&quot;:[],&quot;overlays&quot;:[],&quot;tracks&quot;:[],&quot;title&quot;:&quot;The Mystery behind #HexColorCode&quot;}'\n\t\tanalytics=''\n\t\tautomations\t\tprovider='youtube'\n\t\t\t\tid=\"presto-player-1\"\n\t\tsrc=\"\/\/www.youtube.com\/embed\/y6XCgws7ebQ?iv_load_policy=3&amp;modestbranding=1&amp;playinline=1&amp;showinfo=0&amp;rel=0&amp;enablejsapi=1\"\n\t\tmedia-title=\"The Mystery behind #HexColorCode\"\n\t\tcss=\"\"\n\t\tclass=\"presto-video-id-47 presto-preset-id-1 skin-modern\"\n\t\tskin=\"modern\" \n\t\ticon-url=\"https:\/\/gtechbooster.com\/difogon\/img\/sprite.svg\" \n\t\tpreload=\"\" \n\t\tposter=\"\"\n\t\tyoutube=\"{&quot;noCookie&quot;:false,&quot;channelId&quot;:&quot;&quot;,&quot;show_count&quot;:false}\"\n\t\tprovider-video-id=\"y6XCgws7ebQ\"\n\t\tvideo-id=\"47\"\n\t\t\t\tplaysinline \n\t\t\t\t>\n\t\t\n    <div class=\"presto-iframe-fallback-container\">\n        <iframe style=\"width: 100%\" title=\"Youtube Video\" class=\"presto-fallback-iframe\" id=\"presto-iframe-fallback-1\" data-src=\"https:\/\/www.youtube.com\/embed\/y6XCgws7ebQ?iv_load_policy=3&amp;modestbranding=1&amp;playsinline=1&amp;showinfo=0&amp;rel=0&amp;enablejsapi=1\" allowfullscreen allowtransparency allow=\"autoplay\"><\/iframe>\n    <\/div>\n\n\t<\/presto-player>\n<\/figure><\/div>\n\n\n\n\n<p>So #1A1B1B is equal to;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-palette-color-3-background-color has-background\">\u00a0       Rgb\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: #ff0000;\">26<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #00ff00;\">  27<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: #0000ff;\">27<\/span><br>\u00a0 \u00a0 \u00a0   \u00a0#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: #ff0000;\">1A\u00a0<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0  <span style=\"color: #00ff00;\">1B\u00a0<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: #0000ff;\">1B\u00a0<\/span>\u00a0\u00a0<br>                      <span style=\"color: #ff0000;\">1*16+10<\/span><span style=\"line-height: 28.9px;\">          <\/span><span style=\"line-height: 28.9px;\">\u00a0<\/span><span style=\"color: #00ff00;\">1*16+11<\/span>          <span style=\"color: #0000ff;\">1*16+11<\/span><\/pre>\n\n\n\n<p class=\"cls has-palette-color-14-color has-palette-color-1-background-color has-text-color has-background has-link-color wp-elements-a3a252fc9e6a4eb30e279b66ce514789\">There you have it, it\u2019s not that complicated.&nbsp;So, the next time you see those numbers and alphabets&nbsp;combination beginning with the \u201c<strong>#<\/strong>\u201d sign, say Hi to them for me.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">More Information \u2139<\/h6>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/gtechbooster.com\/tomography-and-instant-print-of-3d-objects\/\" data-type=\"post\" data-id=\"4896\">Tomography and Instant Print of 3D Objects<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/gtechbooster.com\/i\/graphics\/\" data-type=\"post_tag\" data-id=\"1137\">Computer graphics<\/a><\/li>\n<\/ul>\n<div class=\"gtech-end-cont\" id=\"gtech-2550485524\"><div style=\"margin-right: auto;margin-left: auto;text-align: center;\" id=\"gtech-585818917\"><a data-bid=\"1\" data-no-instant=\"1\" href=\"https:\/\/gtechbooster.com\/linkout\/75343\" rel=\"noopener\" class=\"notrack\" aria-label=\"jesdphis\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/gtechbooster.com\/media\/2025\/08\/jesdphis.avif\" alt=\"\"  srcset=\"https:\/\/gtechbooster.com\/media\/2025\/08\/jesdphis.avif 1179w, https:\/\/gtechbooster.com\/media\/2025\/08\/jesdphis-768x950.avif 768w\" sizes=\"(max-width: 1179px) 100vw, 1179px\" width=\"300\" height=\"300\"  style=\"display: inline-block;\" \/><\/a><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Televisions, monitors and virtually every electronic color display unit; displays color by combining Red, Green and Blue light known as RGB or its equivalent. Hex takes RGB further.<\/p>\n","protected":false},"author":7,"featured_media":1244,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[1137,1836,1837,1335,411],"class_list":["post-271","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-features","tag-graphics","tag-design","tag-digital-color","tag-display","tag-hex-color"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/posts\/271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/comments?post=271"}],"version-history":[{"count":2,"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/posts\/271\/revisions"}],"predecessor-version":[{"id":78313,"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/posts\/271\/revisions\/78313"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/media\/1244"}],"wp:attachment":[{"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/media?parent=271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/categories?post=271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/tags?post=271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}