Toggle between HEX→RGB and RGB→HEX modes. Enter a hex color code or adjust RGB sliders to see instant conversions to all major color formats.
Features
Bidirectional — Convert HEX→RGB or RGB→HEX with a mode toggle.
Multiple Formats — Shows HEX, RGB, RGBA, HSL, CSS custom property, and Tailwind class format.
Color Picker — Use the native color picker for visual selection.
RGB Sliders — Fine-tune Red, Green, and Blue channels with range sliders.
Click to Copy — Copy any format with one click.
Live Preview — Large color swatch updates in real time.
Common Use Cases
CSS Development — Convert between color formats for stylesheets.
Design Handoff — Translate designer hex codes to CSS-ready formats.
Tailwind CSS — Get the arbitrary value syntax for custom colors.
Accessibility — Convert colors to check contrast ratios in WCAG tools.
Why Use This Tool
Every CSS project requires color format conversion. This tool gives you all formats at once — HEX, RGB, RGBA, HSL, CSS custom properties, and Tailwind — so you never need to manually calculate channel values again.