Hex Code Visualizer
Overview

Usually one of the first things I do when starting a new project is decide on a color palette. When I decided to create my own portfolio website, I spent quite a bit of time trying to figure out the right palette to use as it was difficult to imagine how all the colors would work together on the page. After trying another tool that aimed to achieve this, I decided to try creating a tool that was more in line with what I needed.

The Hex Color Visualizer is a tool designed to make it easy to visualize, organize, and adjust color palettes for development projects. It provides a simple user-friendly interface to experiment with color combinations and view live previews of how the colors interact on a web page.

Recording
Features
  • Drag and drop functionality to reorder colors within the palette.
  • Real-time preview of selected colors to see how they complement each other.
  • Hex code validation to ensure only valid color codes are entered.
  • Compare mode to view two palettes side by side for comparison.
Tech Stack & Tools
React
Next.js
Tailwind CSS
TypeScript
Challenges

For the most part, this project wasn't technically difficult. In fact, I'm pretty sure that the most challenging portion was trying to get it done with no electricity and a depleting laptop battery.

On the technical side, I had some issues with the color input and the drag-and-drop functionality. Initially, I was trying to have each hex color code on the left have its own input field. However, the drag-and-drop feature was causing the input field to lose focus after each keystroke.

Solutions

After trying a few different implementations to resolve the focus issue, I opted to have a separate input field and allow the user to delete and add colors as I need. I used regex to validate the input field to ensure that only valid hex codes were accepted.

Future Plans
  • Add light/dark mode toggle for live preview.
  • Allow users to save and share palettes.
  • Allow users to customize which colors are used for each component in the live preview.
  • Generate accessibility contrast reports.
Say Hello
I'm always excited to explore new opportunities and collaborations. Whether you have a project in mind, or just want to say hello, feel free to reach out! I look forward to hearing from you.
© 2025 Sabrina Powell.