Color Code Converter
Paste any HEX, RGB, HSL, or HSB color value and instantly see all four formats with a live color preview.
Enter Color Value
Live Preview
#0A84FF
Channel Breakdown
CSS Snippet
Copied!
Summary
Paste any HEX, RGB, HSL, or HSB color value and instantly see all four formats with a live color preview.
How it works
- Type or paste a color value into any input field (HEX, RGB, HSL, or HSB).
- The tool parses your input and converts it to all other formats using standard color math.
- A large live swatch shows the exact color at a glance.
- Click "Copy" next to any format to copy that value to your clipboard.
- Use the color picker button to choose a color visually from your browser's native picker.
Use cases
- Convert a designer's HEX color to RGB for CSS or canvas APIs.
- Translate an RGB value to HSL for Tailwind CSS or SCSS variables.
- Check the hue, saturation, and brightness of a brand color.
- Quickly copy color values while working in code editors.
- Verify that two color codes represent the same color in different notations.
- Pick a color visually and export all four formats at once.
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu