A small, dependency-free browser app for generating random colors.
- Generate colors in HEX or RGB format.
- Copy the current color value to the clipboard.
- Reapply one of the five most recent colors.
- Persist the current color, format preference, and history in the browser.
- Use keyboard shortcuts:
Spacegenerates a color andCcopies it.
No installation is needed. Open index.html in a modern web browser.
For the best clipboard support, serve the folder with a local web server, for example:
python -m http.server 8000Then visit http://localhost:8000.
index.html— page structure and controlsstyle.css— responsive stylingrandom.js— color generation, clipboard support, and local storagergb.js— learning notes and small RGB/HEX examples