Project Overview
The Random Color Palette Generator is a web-based application built using Django that generates visually appealing random color palettes for designers and developers. Each color displays multiple color format conversions including HEX, RGB, HSL, and OKLCH — making it useful for UI/UX designers, frontend developers, and anyone working with color theory.
The app runs offline and does not depend on any external API. The conversion algorithms (including OKLCH) are handled locally using math formulas.
Screenshots
Key Features
- Generates 5 random color palettes instantly
- Offline color conversion (HEX, RGB, HSL, OKLCH)
- Pure Python logic (no external color conversion API or library)
- Refresh button to generate new palette
- Modern UI (color cards with details)
Functionality
- Backend randomly generates a color in RGB format.
- RGB is converted to:
- HEX
- HSL
- OKLCH (manually calculated using mathematical formulas)
- The generated palette is passed to the frontend through Django templates.
- Colors are displayed in color boxes along with their respective formatted values.
- On refresh (
Generate Palettebutton), new palettes are generated.
Technology Stack
- Python (Django Framework): Backend logic, routing, template rendering
- HTML5 + CSS3: Structure and styling of UI
- JavaScript (optional): Enhancing UI interactions (copy to clipboard or regenerate palette without reload if needed)
- Bootstrap / Custom CSS: Modern responsive UI
- Pure Python Math Functions: RGB → HSL & RGB → OKLCH conversion (no API, no external packages)
Why This Project Is Useful
- Helps designers generate color combinations without using external tools like Coolors, Adobe Color, or Figma plugins.
- Supports multiple color formats, useful for development and UI styling.
- No dependencies or subscription required – works offline.
- Quick way to learn Django while building something visually useful.
- Can be extended into a full design tool (save palettes, copy colors, export CSS, etc.)
Download Source Code
Project Setup Instructions
Note: This project is for educational purposes only. Not for commercial sale.





