Color Converter
Convert a color between HEX and RGB formats, with a live preview.
HEX: #2851ff
RGB: rgb(40, 81, 255)
Processing happens locally in your browser. Nothing you enter is uploaded.
How It Works
Enter a HEX code or RGB values — the other format and a color swatch update instantly.
Example
#2851FF is rgb(40, 81, 255).
Frequently Asked Questions
- What's the difference between HEX and RGB?
- HEX represents a color as a 6-digit hexadecimal code (e.g. #2851FF); RGB represents the same color as three numbers from 0-255 for red, green, and blue. Both describe identical colors, just in different notations.
- Does this support 3-digit HEX shorthand?
- Yes — shorthand codes like #f00 are automatically expanded to their full 6-digit form (#ff0000).
Related Tools
HTML Encoder / Decoder
Encode text to HTML entities, or decode HTML entities back to plain text.
JSON Formatter
Format, validate, and beautify JSON with proper indentation.
Base64 Encoder / Decoder
Encode text to Base64, or decode Base64 back to plain text.
Hash Generator
Generate a SHA-1, SHA-256, or SHA-512 hash of any text.
Regex Tester
Test a regular expression against sample text and see all matches.
URL Encoder / Decoder
Encode text for safe use in a URL, or decode a URL-encoded string.