Color Converter
Pick or type a color to instantly see it in HEX, RGB, and HSL, with a live preview swatch — entirely in your browser.
#6366f1
rgb(99, 102, 241)
hsl(239, 84%, 67%)
Frequently Asked Questions
What's the difference between HEX, RGB, and HSL?
HEX and RGB both describe a color by its red, green, and blue components (HEX as hexadecimal, RGB as decimal 0-255). HSL describes color by hue, saturation, and lightness, which is often more intuitive for adjusting a shade.
Can I use a shorthand 3-digit hex code?
Yes — shorthand codes like #f0c are expanded automatically to their full 6-digit equivalent (#ff00cc).
Does this tool store the colors I enter?
No — conversion happens entirely in your browser using plain JavaScript math. Nothing is sent to or stored on a server.
Related free utility tools
- Word CounterCount words, characters, sentences, and paragraphs instantly, with estimated reading time.
- Case ConverterConvert text to UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case, and more.
- Lorem Ipsum GeneratorGenerate placeholder Lorem Ipsum text by paragraphs, sentences, or words for mockups.
- SHA-1 GeneratorGenerate a SHA-1 hash from any text instantly, entirely in your browser — nothing is ever uploaded.
- Random Token GeneratorGenerate cryptographically secure random tokens for API keys or secrets in hex, Base64, or alphanumeric.
- Character CounterCount total characters, letters, digits, and spaces live as you type, plus remaining tweet space.
Explore CodeSpeedTest