A beautiful, modern color picker web application that allows users to select colors and see them reflected across the entire screen with smooth animations and dynamic text color adjustments.
- Interactive Color Selection: Choose colors using a circular color picker or by entering color names/HEX codes
- Full-Screen Background Change: Selected color instantly reflects across the entire screen
- Smart Text Color Adjustment: Text automatically switches between dark and light modes based on background brightness for optimal visibility
- Modern Glassmorphism Design: Beautiful frosted glass effect with backdrop blur
- Smooth Animations: Engaging animations including pulse effects, slide-ins, and transitions
- Animated Background: Subtle drifting particle pattern for visual appeal
- Responsive Design: Works seamlessly on desktop, tablet, and mobile devices
- Real-time Updates: Instant color changes as you select or type
Simply open the index.html file in your browser to see the app in action!
- A modern web browser (Chrome, Firefox, Safari, Edge)
- No additional installations required!
- Clone or download this repository
- Ensure all files are in the same directory:
index.htmlstyle.cssscript.js
- Open
index.htmlin your web browser
Color-Picker-App/
β
βββ index.html # Main HTML structure
βββ style.css # Styling and animations
βββ script.js # Color picker functionality
βββ README.md # Project documentation
- HTML5: Semantic markup structure
- CSS3: Modern styling with animations and glassmorphism effects
- JavaScript (ES6): Interactive functionality and color calculations
- Font Awesome 6: Icons for enhanced UI
- Google Fonts: Poppins font family
- Click on the circular color picker to select a color visually
- The background will change instantly to your selected color
- Type a color name (e.g., "red", "blue", "coral") or HEX code (e.g., "#FF5733")
- Press Enter or click outside the input field
- The background will update to your specified color
- Color Names: red, blue, green, coral, etc.
- HEX Codes: #FF5733, #00BFFF, etc.
- RGB Values: rgb(255, 87, 51)
The app uses a luminance calculation algorithm to determine whether the selected background is light or dark, then automatically adjusts:
- Text colors (heading and paragraph)
- Input field styling
- Container transparency and shadows
This ensures text remains readable on any background color.
All color changes include smooth CSS transitions for a polished user experience:
- Background color transitions: 0.5s
- Text color transitions: Built into style updates
- Hover effects on interactive elements
In script.js, modify the initialColor value:
const initialColor = '#667eea'; // Change this to your preferred default colorIn style.css, modify transition durations:
transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);Update the .container class in style.css to change the card appearance.
- β Chrome (latest)
- β Firefox (latest)
- β Safari (latest)
- β Edge (latest)
- β Opera (latest)
- Desktop: Full-size container with large color picker
- Mobile (< 600px): Adjusted padding and smaller color picker
None at the moment! If you find any bugs, please report them.
Contributions are welcome! Feel free to:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
- Color palette history (save favorite colors)
- Export color codes in different formats (RGB, HSL, CMYK)
- Gradient background support
- Share color schemes via URL
- Color accessibility contrast checker
- Dark mode toggle
This project is open source and available under the MIT License.
Created with β€οΈ by Akash
- Font Awesome for the icon library
- Google Fonts for the Poppins typeface
- Inspiration from modern UI/UX design trends
Enjoy creating beautiful color schemes! π¨β¨