Mary Kasparian’s Post

View profile for Mary Kasparian, graphic

Software Engineer & UI Designer | Front End Developer | React, JavaScript, HTML, CSS

Spent my morning diving into a fun JavaScript project! I whipped up a simple tool that generates an array of colors with varying lightness in HSL from a given hex code. With just a few lines of code, I created a handy function that takes a hex color and produces an array of harmonious shades, perfect for design palettes and creative projects. Instead of using a library I developed custom functions for converting hex to RGB and extracting the hue from an RGB value. Leveraging these functions, I unlocked the potential to create HSLA values based on the extracted hue. What's next? I'm eager to enhance the generator further by adjusting both saturation and lightness values, aiming to craft a more harmonious and vibrant palette. 🌈 🎨 By fine-tuning the saturation alongside the lightness, I anticipate unlocking a broader spectrum of captivating color variations, perfect for design projects and creative endeavors. Stay tuned as I continue to refine and elevate this color palette generator! #JavaScript #ColorGeneration #CodingFun #DesignInspiration #TechExperiments #HSLColors #WebDevelopment #CreativeCoding

  • No alternative text description for this image

To view or add a comment, sign in

Explore topics