{"id":9088,"date":"2024-01-19T17:58:00","date_gmt":"2024-01-19T17:58:00","guid":{"rendered":"https:\/\/codehim.com\/?p=9088"},"modified":"2024-01-22T15:59:05","modified_gmt":"2024-01-22T10:59:05","slug":"color-palette-generator-from-hex-code","status":"publish","type":"post","link":"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/","title":{"rendered":"Color Palette Generator From Hex Code"},"content":{"rendered":"<p>This code snippet helps you to create an easy-to-use color palette generator from hex values. It comes with a user-friendly interface to generate and manipulate color palettes. It allows you to generate random color combinations and customize them with options for lightening and darkening. This code provides a quick way to experiment with colors and copy hex codes for your projects.<\/p>\n<p>This user-friendly tool will help you experiment with colors and streamline your design process.<\/p>\n<h2>How to Create a Color Palette Generator From Hex Code<\/h2>\n<p>1. The following HTML structure defines the layout of your color palette generator. Copy and paste it on your web\/app project where you want to display color palettes. Customize it to fit your website&#8217;s design.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div class=\"container\"&gt;\r\n        &lt;div class=\"color-palette\"&gt;\r\n            &lt;div class=\"color\"&gt;\r\n                &lt;div class=\"color-alt\"&gt;&lt;\/div&gt;\r\n            &lt;\/div&gt;\r\n            &lt;div class=\"color\"&gt;\r\n                &lt;div class=\"color-alt\"&gt;&lt;\/div&gt;\r\n            &lt;\/div&gt;\r\n            &lt;div class=\"color\"&gt;\r\n                &lt;div class=\"color-alt\"&gt;&lt;\/div&gt;\r\n            &lt;\/div&gt;\r\n            &lt;div class=\"color\"&gt;\r\n                &lt;div class=\"color-alt\"&gt;&lt;\/div&gt;\r\n            &lt;\/div&gt;\r\n        &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;div class=\"button-container\"&gt;\r\n    &lt;div&gt;&lt;button class=\"buttons\" onclick=\"start()\"&gt;random compatible &lt;\/button&gt;&lt;\/div&gt;\r\n \r\n    &lt;div&gt;\r\n        &lt;button class=\"buttons\" onclick=\"start('red')\"&gt;red off&lt;\/button&gt;\r\n        &lt;button class=\"buttons\" style=\"background: linear-gradient(to right, rgb(252, 9, 9), rgb(255, 187, 0), rgb(236, 29, 226));\" onclick=\"start('redlight')\"&gt;&lt;\/button&gt;\r\n        &lt;button class=\"buttons\" style=\"background: linear-gradient(to right, rgb(252, 9, 9), rgb(8, 8, 8));\" onclick=\"start('reddark')\"&gt;&lt;\/button&gt;\r\n    &lt;\/div&gt;\r\n\r\n    &lt;div&gt;\r\n        &lt;button class=\"buttons\" onclick=\"start('green')\"&gt;green off&lt;\/button&gt;\r\n        &lt;button class=\"buttons\" style=\"background: linear-gradient(to right, rgb(66, 252, 9), rgb(247, 216, 131),rgb(4, 255, 234));\" onclick=\"start('greenlight')\"&gt;&lt;\/button&gt;\r\n        &lt;button class=\"buttons\" style=\"background: linear-gradient(to right, rgb(29, 243, 10), rgb(23, 114, 4),rgb(3, 32, 1));\" onclick=\"start('greendark')\"&gt;&lt;\/button&gt;\r\n    &lt;\/div&gt;\r\n\r\n    &lt;div&gt;\r\n        &lt;button class=\"buttons\" onclick=\"start('blue')\"&gt;blue off&lt;\/button&gt;\r\n        &lt;button class=\"buttons\" style=\"background: linear-gradient(to right, #00b9ff, #f295fa,rgb(136, 11, 130));\" onclick=\"start('bluelight')\"&gt;&lt;\/button&gt;\r\n        &lt;button class=\"buttons\" style=\"background: linear-gradient(to right, rgb(25, 9, 252), rgb(31, 17, 82),rgb(1, 2, 14));\" onclick=\"start('bluedark')\"&gt;&lt;\/button&gt;\r\n    &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p>2. Use the following CSS code to style the color palette and buttons. Adjust the styles to match your website&#8217;s theme.<\/p>\n<pre class=\"prettyprint linenums lang-css\">*{\r\n    box-sizing: border-box;\r\n    padding: 0;\r\n    margin: 0;\r\n}\r\n\r\nbody{\r\n    font-family: consolas;\r\n}\r\n\r\n.color-palette{\r\n    display: flex;\r\n    flex-direction: column;\r\n    width: 300px;\r\n    height: 270px;\r\n    box-shadow: 0 0 30px #0000002f;\r\n    border-radius: 11px;\r\n    overflow: hidden;\r\n}\r\n\r\n.container{\r\n    padding: 20px;\r\n    display: flex;\r\n    align-items: center;\r\n    justify-content: center;\r\n}\r\n\r\n.color{\r\n    display: flex;\r\n    align-items: flex-end;\r\n    justify-content: end;\r\n    height: 25%;\r\n    cursor: pointer;\r\n}\r\n.color:hover .color-alt{\r\n    transform: scale(1);\r\n}\r\n.color-alt{\r\n    transform: scale(0);\r\n    display: flex;\r\n    align-items: center;\r\n    justify-content: center;\r\n    background: #00000050;\r\n    color: #fff;\r\n    height: 35px;\r\n    width: 100px;\r\n    border-radius: 15px 0 0 0;\r\n    overflow: hidden;\r\n}\r\n.copys{\r\n\r\n    position: relative;\r\n}\r\n.copys::before{\r\n    display: flex;\r\n    align-items: center;\r\n    justify-content: center;\r\n    content: \"Copied\";\r\n    position: absolute;\r\n    left: 0;\r\n    top: 0;\r\n    width: 100%;\r\n    height: 100%;\r\n    background: rgb(0, 0, 0);\r\n}\r\n.button-container{\r\n    display: flex;\r\n    align-items: center;\r\n    flex-direction: column;\r\n}\r\n\r\n.button-container &gt; div{\r\n    display: flex;\r\n    gap: 15px;\r\n    margin: 15px 0;\r\n}\r\n\r\n.buttons{\r\n    border: none;\r\n    outline: 0;\r\n    width: 200px;\r\n    height: 50px;\r\n    cursor: pointer;\r\n    border-radius: 6px;\r\n}\r\n.buttons:hover{\r\n    transform: scale(1.02);\r\n}<\/pre>\n<p>3. Now, let&#8217;s add the JavaScript functionality to make the color palette generator work. Copy and paste the following JavaScript code into your JS file.<\/p>\n<pre class=\"prettyprint linenums lang-js\">var color = document.querySelectorAll(\".color\")\r\nvar coloralt = document.querySelectorAll(\".color-alt\")\r\nvar container = document.querySelector(\".container\")\r\n\r\nfunction start(event) {\r\n    function randomColorGen() {\r\n        \r\n        hexColor = \"#\" + (Math.random() * 0xFFFFFF &lt;&lt; 0).toString(16);\r\n        hexColorRe = hexColor.substring(0, 1) + hexColor.substring(1, 7).split(\"\").reverse().join(\"\");\r\n\r\n        \/\/red ssettings\r\n        if (event === 'red') {\r\n            hexColor = hexColor.substring(0, 1) + \"00\" + hexColor.substring(3, 5) + hexColor.substring(5);\r\n            hexColorRe = hexColorRe.substring(0, 1) + \"00\" + hexColorRe.substring(3, 5) + hexColorRe.substring(5);\r\n        }\r\n        if (event === 'redlight') {\r\n            hexColor = hexColor.substring(0, 1) + \"ff\" + hexColor.substring(3, 5) + hexColor.substring(5);\r\n            hexColorRe = hexColorRe.substring(0, 1) + \"ff\" + hexColorRe.substring(3, 5) + hexColorRe.substring(5);\r\n        }\r\n        if (event === 'reddark') {\r\n            hexColor = hexColor.substring(0, 1) + hexColor.substring(1, 3) + \"00\" + \"00\";\r\n            hexColorRe = hexColorRe.substring(0, 1) + hexColorRe.substring(1, 3) + \"00\" + \"00\";\r\n        }\r\n        \/\/----------------------------\r\n\r\n        \/\/green settings\r\n        if (event === 'green') {\r\n            hexColor = hexColor.substring(0, 1) + hexColor.substring(1, 3) + \"00\" + hexColor.substring(5);\r\n            hexColorRe = hexColorRe.substring(0, 1) + hexColorRe.substring(1, 3) + \"00\" + hexColorRe.substring(5);\r\n        }\r\n        if (event === 'greenlight') {\r\n            hexColor = hexColor.substring(0, 1) + hexColor.substring(1, 3) + \"ff\" + hexColor.substring(5);\r\n            hexColorRe = hexColorRe.substring(0, 1) + hexColorRe.substring(1, 3) + \"ff\" + hexColorRe.substring(5);\r\n        }\r\n        if (event === 'greendark') {\r\n            hexColor = hexColor.substring(0, 1) + \"00\" + hexColor.substring(3, 5) + \"00\";\r\n            hexColorRe = hexColorRe.substring(0, 1) + \"00\" + hexColorRe.substring(3, 5) + \"00\";\r\n        }\r\n        \/\/----------------------------\r\n\r\n        \/\/blue settings\r\n        if (event === 'blue') {\r\n            hexColor = hexColor.substring(0, 1) + hexColor.substring(1, 3) + hexColor.substring(3, 5) + \"00\";\r\n            hexColorRe = hexColorRe.substring(0, 1) + hexColorRe.substring(1, 3) + hexColorRe.substring(3, 5) + \"00\";\r\n        }\r\n        if (event === 'bluelight') {\r\n            hexColor = hexColor.substring(0, 1) + hexColor.substring(1, 3) + hexColor.substring(3, 5) + \"ff\";\r\n            hexColorRe = hexColorRe.substring(0, 1) + hexColorRe.substring(1, 3) + hexColorRe.substring(3, 5) + \"ff\";\r\n        }\r\n        if (event === 'bluedark') {\r\n            hexColor = hexColor.substring(0, 1) + \"00\" + \"00\" + hexColor.substring(5);\r\n            hexColorRe = hexColorRe.substring(0, 1) + \"00\" + \"00\" + hexColorRe.substring(5);\r\n        }\r\n        \/\/----------------------------\r\n\r\n\r\n        container.style.background = `linear-gradient(to bottom, ${hexColor.substring(0, 7) + \"50\"},${hexColorRe.substring(0, 7) + \"50\"})`;\r\n    }\r\n\r\n       \r\n\r\n    for (let i = 0; i &lt; color.length; i++) {\r\n        randomColorGen()\r\n        color[0].style.backgroundColor = hexColor;\r\n        color[1].style.backgroundColor = hexColorRe;\r\n        coloralt[0].innerHTML = hexColor;\r\n        coloralt[1].innerHTML = hexColorRe;\r\n\r\n    }\r\n    for (let i = 0; i &lt; color.length; i++) {\r\n        randomColorGen()\r\n        color[2].style.backgroundColor = hexColor;\r\n        color[3].style.backgroundColor = hexColorRe;\r\n        coloralt[2].innerHTML = hexColor;\r\n        coloralt[3].innerHTML = hexColorRe;\r\n\r\n    }\r\n}\r\n\r\nfor (let i = 0; i &lt; color.length; i++) {\r\n    color[i].addEventListener(\"click\", ()=&gt;{\r\n        navigator.clipboard.writeText(coloralt[i].textContent)\r\n        coloralt[i].classList.add(\"copys\")\r\n        setTimeout(() =&gt; {\r\n            coloralt[i].classList.remove(\"copys\")\r\n        }, 500);\r\n    })   \r\n}\r\n\r\n\r\nstart()<\/pre>\n<p>Feel free to customize the color palette generator further to match your website&#8217;s design. You can adjust the CSS styles, add more color options, or integrate it into your existing web project by including the HTML, CSS, and JavaScript files.<\/p>\n<p>That&#8217;s it! You&#8217;ve successfully created a color palette generator using HTML, CSS, and JavaScript. This interactive tool will make it easier for users to experiment with color combinations and enhance the design of your website or web application. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This code snippet helps you to create an easy-to-use color palette generator from hex values. It comes with a user-friendly&#8230;<\/p>\n","protected":false},"author":1,"featured_media":9095,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[63],"tags":[234],"class_list":["post-9088","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html5-css3","tag-color-picker"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Color Palette Generator From Hex Code &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a Color Palette Generator From Hex Code. You can view demo and download the source code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Color Palette Generator From Hex Code &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a Color Palette Generator From Hex Code. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/\" \/>\n<meta property=\"og:site_name\" content=\"CodeHim\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codehimofficial\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-19T17:58:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T10:59:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Color-Palette-Generator-From-Hex-Code.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Asif Mughal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:site\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Asif Mughal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Color Palette Generator From Hex Code\",\"datePublished\":\"2024-01-19T17:58:00+00:00\",\"dateModified\":\"2024-01-22T10:59:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/\"},\"wordCount\":266,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Color-Palette-Generator-From-Hex-Code.png\",\"keywords\":[\"Color Picker\"],\"articleSection\":[\"HTML5 &amp; CSS3\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/\",\"url\":\"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/\",\"name\":\"Color Palette Generator From Hex Code &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Color-Palette-Generator-From-Hex-Code.png\",\"datePublished\":\"2024-01-19T17:58:00+00:00\",\"dateModified\":\"2024-01-22T10:59:05+00:00\",\"description\":\"Here is a free code snippet to create a Color Palette Generator From Hex Code. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Color-Palette-Generator-From-Hex-Code.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Color-Palette-Generator-From-Hex-Code.png\",\"width\":1280,\"height\":960,\"caption\":\"Color Palette Generator From Hex Code\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML5 &amp; CSS3\",\"item\":\"https:\/\/codehim.com\/category\/html5-css3\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Color Palette Generator From Hex Code\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codehim.com\/#website\",\"url\":\"https:\/\/codehim.com\/\",\"name\":\"CodeHim\",\"description\":\"Web Design Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"alternateName\":\"Web Design Codes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codehim.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codehim.com\/#organization\",\"name\":\"CodeHim - Web Design Code & Scripts\",\"url\":\"https:\/\/codehim.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"contentUrl\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"width\":280,\"height\":280,\"caption\":\"CodeHim - Web Design Code & Scripts\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/codehimofficial\",\"https:\/\/x.com\/CodeHimOfficial\",\"https:\/\/www.instagram.com\/codehim\/\",\"https:\/\/www.linkedin.com\/company\/codehim\",\"https:\/\/co.pinterest.com\/codehim\/\",\"https:\/\/www.youtube.com\/@codehim\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\",\"name\":\"Asif Mughal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"caption\":\"Asif Mughal\"},\"description\":\"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.\",\"sameAs\":[\"https:\/\/codehim.com\"],\"url\":\"https:\/\/codehim.com\/author\/asif-mughal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Color Palette Generator From Hex Code &#8212; CodeHim","description":"Here is a free code snippet to create a Color Palette Generator From Hex Code. You can view demo and download the source code.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/","og_locale":"en_US","og_type":"article","og_title":"Color Palette Generator From Hex Code &#8212; CodeHim","og_description":"Here is a free code snippet to create a Color Palette Generator From Hex Code. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-19T17:58:00+00:00","article_modified_time":"2024-01-22T10:59:05+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Color-Palette-Generator-From-Hex-Code.png","type":"image\/png"}],"author":"Asif Mughal","twitter_card":"summary_large_image","twitter_creator":"@CodeHimOfficial","twitter_site":"@CodeHimOfficial","twitter_misc":{"Written by":"Asif Mughal","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Color Palette Generator From Hex Code","datePublished":"2024-01-19T17:58:00+00:00","dateModified":"2024-01-22T10:59:05+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/"},"wordCount":266,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Color-Palette-Generator-From-Hex-Code.png","keywords":["Color Picker"],"articleSection":["HTML5 &amp; CSS3"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/","url":"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/","name":"Color Palette Generator From Hex Code &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Color-Palette-Generator-From-Hex-Code.png","datePublished":"2024-01-19T17:58:00+00:00","dateModified":"2024-01-22T10:59:05+00:00","description":"Here is a free code snippet to create a Color Palette Generator From Hex Code. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Color-Palette-Generator-From-Hex-Code.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Color-Palette-Generator-From-Hex-Code.png","width":1280,"height":960,"caption":"Color Palette Generator From Hex Code"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/html5-css3\/color-palette-generator-from-hex-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"HTML5 &amp; CSS3","item":"https:\/\/codehim.com\/category\/html5-css3\/"},{"@type":"ListItem","position":3,"name":"Color Palette Generator From Hex Code"}]},{"@type":"WebSite","@id":"https:\/\/codehim.com\/#website","url":"https:\/\/codehim.com\/","name":"CodeHim","description":"Web Design Code Snippets","publisher":{"@id":"https:\/\/codehim.com\/#organization"},"alternateName":"Web Design Codes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codehim.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codehim.com\/#organization","name":"CodeHim - Web Design Code & Scripts","url":"https:\/\/codehim.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/","url":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","contentUrl":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","width":280,"height":280,"caption":"CodeHim - Web Design Code & Scripts"},"image":{"@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codehimofficial","https:\/\/x.com\/CodeHimOfficial","https:\/\/www.instagram.com\/codehim\/","https:\/\/www.linkedin.com\/company\/codehim","https:\/\/co.pinterest.com\/codehim\/","https:\/\/www.youtube.com\/@codehim"]},{"@type":"Person","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed","name":"Asif Mughal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","caption":"Asif Mughal"},"description":"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.","sameAs":["https:\/\/codehim.com"],"url":"https:\/\/codehim.com\/author\/asif-mughal\/"}]}},"views":1782,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9088","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/comments?post=9088"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9088\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/9095"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=9088"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=9088"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=9088"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}