{"id":8310127,"date":"2025-09-04T04:45:54","date_gmt":"2025-09-04T01:45:54","guid":{"rendered":"https:\/\/elementor.com\/tools\/?p=8310127"},"modified":"2025-09-04T04:47:15","modified_gmt":"2025-09-04T01:47:15","slug":"color-palette-generator-from-hex","status":"publish","type":"post","link":"https:\/\/elementor.com\/tools\/color-palette-generator-from-hex\/","title":{"rendered":"Color Palette Generator from Hex"},"content":{"rendered":"\t\t<div data-elementor-type=\"container\" data-elementor-id=\"8310126\" class=\"elementor elementor-8310126\" data-elementor-post-type=\"elementor_library\">\n\t\t\t\t<div class=\"elementor-element elementor-element-23691a2c e-flex e-con-boxed e-con e-parent\" data-id=\"23691a2c\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-37c3711c elementor-widget elementor-widget-html\" data-id=\"37c3711c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\r\n    \/* --- Styles learned from your code --- *\/\r\n    .html-viewer-app {\r\n        width: 100%;\r\n        max-width: 1280px;\r\n        margin: 0 auto;\r\n        padding: 40px 0 0;\r\n        background: transparent;\r\n        overflow: visible;\r\n        position: relative;\r\n    }\r\n\r\n    .format-btn {\r\n        background-color: #000;\r\n        color: white;\r\n        border: none;\r\n        padding: 12px 20px;\r\n        cursor: pointer;\r\n        font-size: 1.125rem;\r\n        font-weight: 500;\r\n        transition: all 0.2s;\r\n        min-width: 11rem;\r\n        text-align: center;\r\n        border-radius: 4px;\r\n    }\r\n\r\n    .format-btn:is(:hover, :focus, :focus-visible, :active) {\r\n        background-color: #545454;\r\n    }\r\n\r\n    \/* Using your #minifyBtn style for the \"Random\" button *\/\r\n    #randomBtn {\r\n        background-color: #ff7be5;\r\n        color: black;\r\n    }\r\n\r\n    #randomBtn:is(:hover, :focus, :focus-visible, :active) {\r\n        background-color: #ffa8ee;\r\n    }\r\n\r\n    .copy-btn {\r\n        background-color: rgba(255, 255, 255, 0.8);\r\n        color: black;\r\n        border: 1px solid #ddd;\r\n        padding: 4px 8px;\r\n        border-radius: 4px;\r\n        cursor: pointer;\r\n        font-size: 12px;\r\n        transition: background-color 0.2s;\r\n        backdrop-filter: blur(5px); \/* Nice effect for overlaying on color *\/\r\n    }\r\n    \r\n    .copy-btn:is(:hover, :focus, :focus-visible) {\r\n        background-color: #f6f6f6 !important;\r\n    }\r\n\r\n    .input-section {\r\n        width: 100%;\r\n        max-width: 800px;\r\n        margin: 0 auto;\r\n        display: flex;\r\n        flex-direction: column;\r\n        background: white;\r\n        border-radius: 8px;\r\n        overflow: hidden;\r\n        border: 1.5px solid #EBEBEB;\r\n        box-shadow: 0 4px 15px rgba(0,0,0,0.05);\r\n    }\r\n\r\n    .section-header {\r\n        background-color: #05047E;\r\n        color: white;\r\n        padding: 12px 20px;\r\n        font-size: 1.125rem;\r\n    }\r\n\r\n    .success-message {\r\n        position: fixed;\r\n        top: 20px;\r\n        right: 20px;\r\n        background-color: #05047E; \/* Matching header color *\/\r\n        color: white;\r\n        padding: 12px 20px;\r\n        border-radius: 4px;\r\n        font-size: 14px;\r\n        opacity: 0;\r\n        transform: translateY(-20px);\r\n        transition: all 0.3s ease;\r\n        z-index: 1000;\r\n        box-shadow: 0 0 10px rgba(0,0,0,0.1);\r\n    }\r\n\r\n    .success-message.show {\r\n        opacity: 1;\r\n        transform: translateY(0);\r\n    }\r\n\r\n    \/* --- New Styles for the Palette Generator --- *\/\r\n    .main-content {\r\n        display: flex;\r\n        flex-direction: column;\r\n        gap: 40px;\r\n        align-items: center;\r\n    }\r\n\r\n    .input-controls {\r\n        display: flex;\r\n        flex-wrap: wrap;\r\n        gap: 20px;\r\n        padding: 20px;\r\n        align-items: center;\r\n        justify-content: center;\r\n        background-color: #f9f9f9;\r\n    }\r\n    \r\n    #hexInput {\r\n        font-family: 'Courier New', monospace;\r\n        font-size: 1.25rem;\r\n        padding: 12px;\r\n        border: 1.5px solid #EBEBEB;\r\n        border-radius: 4px;\r\n        width: 150px;\r\n        text-align: center;\r\n        outline: none;\r\n        transition: border-color 0.2s;\r\n    }\r\n\r\n    #hexInput:focus {\r\n        border-color: #05047E;\r\n    }\r\n\r\n    #colorPicker {\r\n        -webkit-appearance: none;\r\n        -moz-appearance: none;\r\n        appearance: none;\r\n        width: 50px;\r\n        height: 50px;\r\n        background-color: transparent;\r\n        border: none;\r\n        cursor: pointer;\r\n    }\r\n\r\n    #colorPicker::-webkit-color-swatch {\r\n        border-radius: 50%;\r\n        border: 2px solid #EBEBEB;\r\n    }\r\n    #colorPicker::-moz-color-swatch {\r\n        border-radius: 50%;\r\n        border: 2px solid #EBEBEB;\r\n    }\r\n\r\n    .palette-container {\r\n        display: flex;\r\n        width: 100%;\r\n        max-width: 1280px;\r\n        height: 400px; \/* Set a height for the palette *\/\r\n        margin: 0 auto;\r\n        border-radius: 8px;\r\n        overflow: hidden;\r\n        box-shadow: 0 4px 15px rgba(0,0,0,0.1);\r\n    }\r\n\r\n    .color-card {\r\n        flex: 1;\r\n        display: flex;\r\n        flex-direction: column;\r\n        justify-content: flex-end;\r\n        align-items: center;\r\n        padding: 20px;\r\n        transition: flex-grow 0.3s ease;\r\n        position: relative;\r\n    }\r\n    \r\n    .color-card:hover {\r\n        flex-grow: 1.5; \/* Nice hover effect to focus on a color *\/\r\n    }\r\n\r\n    .color-info {\r\n        display: flex;\r\n        flex-direction: column;\r\n        align-items: center;\r\n        gap: 10px;\r\n        color: white;\r\n        text-shadow: 0 1px 3px rgba(0,0,0,0.4);\r\n        font-family: 'Courier New', monospace;\r\n        text-align: center;\r\n    }\r\n\r\n    .hex-code {\r\n        font-size: 1rem;\r\n        font-weight: bold;\r\n    }\r\n\r\n    @media (max-width: 768px) {\r\n        .input-controls {\r\n            flex-direction: column;\r\n        }\r\n        .palette-container {\r\n            flex-direction: column;\r\n            height: 70vh; \/* Adjust height for vertical layout *\/\r\n            max-height: 600px;\r\n        }\r\n        .color-card:hover {\r\n           flex-grow: 2;\r\n        }\r\n    }\r\n<\/style>\r\n\r\n<div class=\"html-viewer-app\">\r\n    <div class=\"main-content\">\r\n        \r\n        <!-- Input Section -->\r\n        <div class=\"input-section\">\r\n            <div class=\"section-header\">\r\n                Color Palette Generator\r\n            <\/div>\r\n            <div class=\"input-controls\">\r\n                <input type=\"color\" id=\"colorPicker\" value=\"#05047E\">\r\n                <input type=\"text\" id=\"hexInput\" maxlength=\"7\" placeholder=\"#05047E\">\r\n                <button id=\"generateBtn\" class=\"format-btn\">Generate<\/button>\r\n                <button id=\"randomBtn\" class=\"format-btn\">Random Color<\/button>\r\n            <\/div>\r\n        <\/div>\r\n\r\n        <!-- Palette Output Section -->\r\n        <div id=\"paletteContainer\" class=\"palette-container\">\r\n            <!-- Color cards will be generated here by JavaScript -->\r\n        <\/div>\r\n\r\n    <\/div>\r\n\r\n    <!-- Success Message for Copying -->\r\n    <div id=\"successMessage\" class=\"success-message\">Color copied to clipboard!<\/div>\r\n<\/div>\r\n\r\n<script>\r\n    document.addEventListener('DOMContentLoaded', () => {\r\n        \/\/ --- DOM Element Selection ---\r\n        const colorPicker = document.getElementById('colorPicker');\r\n        const hexInput = document.getElementById('hexInput');\r\n        const generateBtn = document.getElementById('generateBtn');\r\n        const randomBtn = document.getElementById('randomBtn');\r\n        const paletteContainer = document.getElementById('paletteContainer');\r\n        const successMessage = document.getElementById('successMessage');\r\n\r\n        \/\/ --- Core Functions ---\r\n\r\n        \/**\r\n         * Converts a HEX color string to an HSL object.\r\n         * @param {string} hex - The hex color string (e.g., \"#RRGGBB\").\r\n         * @returns {object} - An object with h, s, l properties.\r\n         *\/\r\n        function hexToHsl(hex) {\r\n            let r = 0, g = 0, b = 0;\r\n            if (hex.length == 4) {\r\n                r = parseInt(hex[1] + hex[1], 16);\r\n                g = parseInt(hex[2] + hex[2], 16);\r\n                b = parseInt(hex[3] + hex[3], 16);\r\n            } else if (hex.length == 7) {\r\n                r = parseInt(hex.substring(1, 3), 16);\r\n                g = parseInt(hex.substring(3, 5), 16);\r\n                b = parseInt(hex.substring(5, 7), 16);\r\n            }\r\n            r \/= 255; g \/= 255; b \/= 255;\r\n            let max = Math.max(r, g, b), min = Math.min(r, g, b);\r\n            let h, s, l = (max + min) \/ 2;\r\n\r\n            if (max == min) {\r\n                h = s = 0; \/\/ achromatic\r\n            } else {\r\n                let d = max - min;\r\n                s = l > 0.5 ? d \/ (2 - max - min) : d \/ (max + min);\r\n                switch (max) {\r\n                    case r: h = (g - b) \/ d + (g < b ? 6 : 0); break;\r\n                    case g: h = (b - r) \/ d + 2; break;\r\n                    case b: h = (r - g) \/ d + 4; break;\r\n                }\r\n                h \/= 6;\r\n            }\r\n            return { h: h * 360, s: s * 100, l: l * 100 };\r\n        }\r\n\r\n        \/**\r\n         * Converts an HSL color value to a HEX string.\r\n         * @param {number} h - Hue (0-360)\r\n         * @param {number} s - Saturation (0-100)\r\n         * @param {number} l - Lightness (0-100)\r\n         * @returns {string} - The hex color string.\r\n         *\/\r\n        function hslToHex(h, s, l) {\r\n            s \/= 100;\r\n            l \/= 100;\r\n            let c = (1 - Math.abs(2 * l - 1)) * s,\r\n                x = c * (1 - Math.abs((h \/ 60) % 2 - 1)),\r\n                m = l - c \/ 2,\r\n                r = 0, g = 0, b = 0;\r\n\r\n            if (0 <= h && h < 60) { [r, g, b] = [c, x, 0]; }\r\n            else if (60 <= h && h < 120) { [r, g, b] = [x, c, 0]; }\r\n            else if (120 <= h && h < 180) { [r, g, b] = [0, c, x]; }\r\n            else if (180 <= h && h < 240) { [r, g, b] = [0, x, c]; }\r\n            else if (240 <= h && h < 300) { [r, g, b] = [x, 0, c]; }\r\n            else if (300 <= h && h < 360) { [r, g, b] = [c, 0, x]; }\r\n            \r\n            r = Math.round((r + m) * 255).toString(16);\r\n            g = Math.round((g + m) * 255).toString(16);\r\n            b = Math.round((b + m) * 255).toString(16);\r\n\r\n            if (r.length == 1) r = \"0\" + r;\r\n            if (g.length == 1) g = \"0\" + g;\r\n            if (b.length == 1) b = \"0\" + b;\r\n\r\n            return `#${r}${g}${b}`.toUpperCase();\r\n        }\r\n        \r\n        \/**\r\n         * Generates a palette of 5 colors based on a single hex color.\r\n         * @param {string} baseHex - The starting color.\r\n         *\/\r\n        function generateAndDisplayPalette(baseHex) {\r\n            if (!\/^#[0-9A-F]{6}$\/i.test(baseHex)) {\r\n                \/\/ simple validation\r\n                alert(\"Please enter a valid 6-digit hex code (e.g., #1A2B3C)\");\r\n                return;\r\n            }\r\n            \r\n            const hsl = hexToHsl(baseHex);\r\n            const palette = [];\r\n            \r\n            \/\/ Generate 2 shades (darker), the base, and 2 tints (lighter)\r\n            const steps = [-20, -10, 0, 10, 20];\r\n            steps.forEach(step => {\r\n                let newLightness = hsl.l + step;\r\n                \/\/ Clamp lightness between 5% and 95% to avoid pure black\/white\r\n                newLightness = Math.max(5, Math.min(95, newLightness));\r\n                palette.push(hslToHex(hsl.h, hsl.s, newLightness));\r\n            });\r\n            \r\n            displayPalette(palette);\r\n        }\r\n\r\n        \/**\r\n         * Renders the color palette in the DOM.\r\n         * @param {string[]} colors - An array of hex color strings.\r\n         *\/\r\n        function displayPalette(colors) {\r\n            paletteContainer.innerHTML = '';\r\n            colors.forEach(color => {\r\n                \/\/ Determine if text should be light or dark for readability\r\n                const luminance = hexToHsl(color).l;\r\n                const textColorClass = luminance > 50 ? 'dark-text' : 'light-text';\r\n\r\n                const colorCard = document.createElement('div');\r\n                colorCard.className = 'color-card';\r\n                colorCard.style.backgroundColor = color;\r\n                \r\n                colorCard.innerHTML = `\r\n                    <div class=\"color-info ${textColorClass}\">\r\n                        <span class=\"hex-code\">${color}<\/span>\r\n                        <button class=\"copy-btn\" data-color=\"${color}\">Copy<\/button>\r\n                    <\/div>\r\n                `;\r\n                paletteContainer.appendChild(colorCard);\r\n            });\r\n        }\r\n        \r\n        \/**\r\n         * Copies text to the clipboard and shows a confirmation message.\r\n         * @param {string} text - The text to copy.\r\n         *\/\r\n        function copyToClipboard(text) {\r\n            navigator.clipboard.writeText(text).then(() => {\r\n                successMessage.classList.add('show');\r\n                setTimeout(() => {\r\n                    successMessage.classList.remove('show');\r\n                }, 2000);\r\n            }).catch(err => {\r\n                console.error('Failed to copy: ', err);\r\n            });\r\n        }\r\n\r\n        \/**\r\n         * Updates both color inputs to be in sync.\r\n         * @param {string} value - The new color value.\r\n         * @param {HTMLElement} source - The element that triggered the change.\r\n         *\/\r\n        function syncInputs(value, source) {\r\n            if (source === 'picker') {\r\n                hexInput.value = value.toUpperCase();\r\n            } else if (source === 'text') {\r\n                if (\/^#[0-9A-F]{6}$\/i.test(value)) {\r\n                    colorPicker.value = value;\r\n                }\r\n            }\r\n        }\r\n\r\n        \/\/ --- Event Listeners ---\r\n        generateBtn.addEventListener('click', () => {\r\n            generateAndDisplayPalette(hexInput.value);\r\n        });\r\n\r\n        randomBtn.addEventListener('click', () => {\r\n            const randomColor = '#' + Math.floor(Math.random()*16777215).toString(16).padStart(6, '0').toUpperCase();\r\n            hexInput.value = randomColor;\r\n            colorPicker.value = randomColor;\r\n            generateAndDisplayPalette(randomColor);\r\n        });\r\n        \r\n        \/\/ Handle copy button clicks using event delegation\r\n        paletteContainer.addEventListener('click', (e) => {\r\n            const copyButton = e.target.closest('.copy-btn');\r\n            if (copyButton) {\r\n                const colorToCopy = copyButton.dataset.color;\r\n                copyToClipboard(colorToCopy);\r\n            }\r\n        });\r\n\r\n        colorPicker.addEventListener('input', (e) => {\r\n            syncInputs(e.target.value, 'picker');\r\n        });\r\n\r\n        hexInput.addEventListener('input', (e) => {\r\n             syncInputs(e.target.value, 'text');\r\n        });\r\n        \r\n        hexInput.addEventListener('keyup', (e) => {\r\n            if (e.key === 'Enter') {\r\n                generateAndDisplayPalette(hexInput.value);\r\n            }\r\n        });\r\n        \r\n        \/\/ --- Initial Load ---\r\n        function initialize() {\r\n            const initialColor = '#05047E'; \/\/ A color from your provided CSS\r\n            colorPicker.value = initialColor;\r\n            hexInput.value = initialColor;\r\n            generateAndDisplayPalette(initialColor);\r\n        }\r\n        \r\n        initialize();\r\n    });\r\n<\/script>\r\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[22],"tags":[21],"class_list":["post-8310127","post","type-post","status-publish","format-standard","hentry","category-tools","tag-html-css-tools"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Color Palette Generator from Hex<\/title>\n<meta name=\"description\" content=\"Effortlessly create stunning color palettes from any HEX code with our free online generator. Find complementary, analogous, and triadic schemes to elevate your web design, branding, and graphic projects.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elementor.com\/tools\/color-palette-generator-from-hex\/\" \/>\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\" \/>\n<meta property=\"og:description\" content=\"Effortlessly create stunning color palettes from any HEX code with our free online generator. Find complementary, analogous, and triadic schemes to elevate your web design, branding, and graphic projects.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elementor.com\/tools\/color-palette-generator-from-hex\/\" \/>\n<meta property=\"og:site_name\" content=\"Tools\" \/>\n<meta property=\"article:published_time\" content=\"2025-09-04T01:45:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-04T01:47:15+00:00\" \/>\n<meta name=\"author\" content=\"liz@148.red\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"liz@148.red\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/elementor.com\/tools\/color-palette-generator-from-hex\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/elementor.com\/tools\/color-palette-generator-from-hex\/\"},\"author\":{\"name\":\"liz@148.red\",\"@id\":\"https:\/\/elementor.com\/tools\/#\/schema\/person\/80e8375cb95e6030bc2f897c41c985ac\"},\"headline\":\"Color Palette Generator from Hex\",\"datePublished\":\"2025-09-04T01:45:54+00:00\",\"dateModified\":\"2025-09-04T01:47:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/elementor.com\/tools\/color-palette-generator-from-hex\/\"},\"wordCount\":7,\"keywords\":[\"Html-Css-tools\"],\"articleSection\":[\"tools\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/elementor.com\/tools\/color-palette-generator-from-hex\/\",\"url\":\"https:\/\/elementor.com\/tools\/color-palette-generator-from-hex\/\",\"name\":\"Color Palette Generator from Hex\",\"isPartOf\":{\"@id\":\"https:\/\/elementor.com\/tools\/#website\"},\"datePublished\":\"2025-09-04T01:45:54+00:00\",\"dateModified\":\"2025-09-04T01:47:15+00:00\",\"author\":{\"@id\":\"https:\/\/elementor.com\/tools\/#\/schema\/person\/80e8375cb95e6030bc2f897c41c985ac\"},\"description\":\"Effortlessly create stunning color palettes from any HEX code with our free online generator. Find complementary, analogous, and triadic schemes to elevate your web design, branding, and graphic projects.\",\"breadcrumb\":{\"@id\":\"https:\/\/elementor.com\/tools\/color-palette-generator-from-hex\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/elementor.com\/tools\/color-palette-generator-from-hex\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/elementor.com\/tools\/color-palette-generator-from-hex\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/elementor.com\/tools\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Color Palette Generator from Hex\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/elementor.com\/tools\/#website\",\"url\":\"https:\/\/elementor.com\/tools\/\",\"name\":\"Tools\",\"description\":\"Just another Elementor hosted website ;)\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/elementor.com\/tools\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/elementor.com\/tools\/#\/schema\/person\/80e8375cb95e6030bc2f897c41c985ac\",\"name\":\"liz@148.red\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/63b900d3310bd1ed40162fb27f016e9920ae66fa5be07be5153344329ef7d9d2?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/63b900d3310bd1ed40162fb27f016e9920ae66fa5be07be5153344329ef7d9d2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/63b900d3310bd1ed40162fb27f016e9920ae66fa5be07be5153344329ef7d9d2?s=96&d=mm&r=g\",\"caption\":\"liz@148.red\"},\"url\":\"https:\/\/elementor.com\/tools\/author\/liz148-red\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Color Palette Generator from Hex","description":"Effortlessly create stunning color palettes from any HEX code with our free online generator. Find complementary, analogous, and triadic schemes to elevate your web design, branding, and graphic projects.","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:\/\/elementor.com\/tools\/color-palette-generator-from-hex\/","og_locale":"en_US","og_type":"article","og_title":"Color Palette Generator from Hex","og_description":"Effortlessly create stunning color palettes from any HEX code with our free online generator. Find complementary, analogous, and triadic schemes to elevate your web design, branding, and graphic projects.","og_url":"https:\/\/elementor.com\/tools\/color-palette-generator-from-hex\/","og_site_name":"Tools","article_published_time":"2025-09-04T01:45:54+00:00","article_modified_time":"2025-09-04T01:47:15+00:00","author":"liz@148.red","twitter_card":"summary_large_image","twitter_misc":{"Written by":"liz@148.red","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elementor.com\/tools\/color-palette-generator-from-hex\/#article","isPartOf":{"@id":"https:\/\/elementor.com\/tools\/color-palette-generator-from-hex\/"},"author":{"name":"liz@148.red","@id":"https:\/\/elementor.com\/tools\/#\/schema\/person\/80e8375cb95e6030bc2f897c41c985ac"},"headline":"Color Palette Generator from Hex","datePublished":"2025-09-04T01:45:54+00:00","dateModified":"2025-09-04T01:47:15+00:00","mainEntityOfPage":{"@id":"https:\/\/elementor.com\/tools\/color-palette-generator-from-hex\/"},"wordCount":7,"keywords":["Html-Css-tools"],"articleSection":["tools"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/elementor.com\/tools\/color-palette-generator-from-hex\/","url":"https:\/\/elementor.com\/tools\/color-palette-generator-from-hex\/","name":"Color Palette Generator from Hex","isPartOf":{"@id":"https:\/\/elementor.com\/tools\/#website"},"datePublished":"2025-09-04T01:45:54+00:00","dateModified":"2025-09-04T01:47:15+00:00","author":{"@id":"https:\/\/elementor.com\/tools\/#\/schema\/person\/80e8375cb95e6030bc2f897c41c985ac"},"description":"Effortlessly create stunning color palettes from any HEX code with our free online generator. Find complementary, analogous, and triadic schemes to elevate your web design, branding, and graphic projects.","breadcrumb":{"@id":"https:\/\/elementor.com\/tools\/color-palette-generator-from-hex\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elementor.com\/tools\/color-palette-generator-from-hex\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/elementor.com\/tools\/color-palette-generator-from-hex\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/elementor.com\/tools\/"},{"@type":"ListItem","position":2,"name":"Color Palette Generator from Hex"}]},{"@type":"WebSite","@id":"https:\/\/elementor.com\/tools\/#website","url":"https:\/\/elementor.com\/tools\/","name":"Tools","description":"Just another Elementor hosted website ;)","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elementor.com\/tools\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/elementor.com\/tools\/#\/schema\/person\/80e8375cb95e6030bc2f897c41c985ac","name":"liz@148.red","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/63b900d3310bd1ed40162fb27f016e9920ae66fa5be07be5153344329ef7d9d2?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/63b900d3310bd1ed40162fb27f016e9920ae66fa5be07be5153344329ef7d9d2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63b900d3310bd1ed40162fb27f016e9920ae66fa5be07be5153344329ef7d9d2?s=96&d=mm&r=g","caption":"liz@148.red"},"url":"https:\/\/elementor.com\/tools\/author\/liz148-red\/"}]}},"_links":{"self":[{"href":"https:\/\/elementor.com\/tools\/wp-json\/wp\/v2\/posts\/8310127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elementor.com\/tools\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elementor.com\/tools\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elementor.com\/tools\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/elementor.com\/tools\/wp-json\/wp\/v2\/comments?post=8310127"}],"version-history":[{"count":1,"href":"https:\/\/elementor.com\/tools\/wp-json\/wp\/v2\/posts\/8310127\/revisions"}],"predecessor-version":[{"id":8310130,"href":"https:\/\/elementor.com\/tools\/wp-json\/wp\/v2\/posts\/8310127\/revisions\/8310130"}],"wp:attachment":[{"href":"https:\/\/elementor.com\/tools\/wp-json\/wp\/v2\/media?parent=8310127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elementor.com\/tools\/wp-json\/wp\/v2\/categories?post=8310127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elementor.com\/tools\/wp-json\/wp\/v2\/tags?post=8310127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}