🎨 Color Converter
HEX · RGB · HSL – Real‑time conversion · Live preview · One‑click copy
⚡ Real‑time conversion · Click any value to copy · 100% local processing
HEX · RGB · HSL – Real‑time conversion · Live preview · One‑click copy
⚡ Real‑time conversion · Click any value to copy · 100% local processing
Color format conversion is one of the most frequent tasks in frontend development and UI design. The ng.cc online color converter supports real‑time conversion between HEX, RGB, and HSL. Enter any format and instantly see the other two, with an accurate color swatch preview. No installation, completely free, and all conversions happen locally in your browser – your design data never leaves your device.
HEX (hexadecimal), RGB (red‑green‑blue), HSL (hue/saturation/lightness) – any input updates all three values instantly.
Supports shorthand HEX (#RGB), full HEX (#RRGGBB), rgb() and hsl() functions. Automatic parsing, no extra steps.
Click any color value below the swatch (HEX/RGB/HSL) to copy it to your clipboard – ready to paste into code or design files.
Stuck for inspiration? Click “Random” to generate a harmonious color and explore palettes.
| Color | HEX | RGB | HSL |
|---|---|---|---|
| Orange | #FF5733 | rgb(255, 87, 51) | hsl(11, 100%, 60%) |
| Green | #33FF57 | rgb(51, 255, 87) | hsl(130, 100%, 60%) |
| Blue | #3357FF | rgb(51, 87, 255) | hsl(229, 100%, 60%) |
| Pink | #FF33F1 | rgb(255, 51, 241) | hsl(304, 100%, 60%) |
| Cyan | #33FFF5 | rgb(51, 255, 245) | hsl(177, 100%, 60%) |
HEX (hexadecimal) starts with # and uses six hex digits for red, green, and blue (e.g., #4EC9B0). Most common in web CSS.
RGB uses three integers 0–255 for red, green, blue (e.g., rgb(78, 201, 176)). Closer to how screens work.
HSL (hue, saturation, lightness): hue (0–360°), saturation (0–100%), lightness (0–100%) – e.g., hsl(163, 51%, 55%). Most intuitive for humans.
This version focuses on the three opaque formats. For transparency support, you may want a dedicated RGBA/HSLA tool. We might add it in a future update.
Conversions between RGB and HSL involve rounding floating‑point numbers, so a difference of ±1 is normal and does not affect practical use.
Yes, fully. Enter #FFF, #000, #F00 – they will be expanded automatically to #FFFFFF, #000000, #FF0000.
Absolutely not. All conversion code runs locally in your browser. You can even disconnect from the internet and the tool still works. This is the core privacy guarantee that sets us apart from online color converters.
This tool is part of the ng.cc design toolkit. You might also need:
⚡ All tools run locally, no data ever stored. Safe for commercial design projects.