Converts colour values between Hex (#rrggbb), RGB (rgb(r,g,b)), HSL (hsl(h,s%,l%)), and HSB/HSV formats instantly with a live colour preview. Accepts input in any format and shows all other representations simultaneously. Supports 3-digit hex shorthand and alpha channel values.
Enter a colour in any format and get all other representations with a live preview swatch. To extract all colour codes from an existing CSS file, use the Color Code Extractor.
Hex to RGB
Input
#ff6b6b
Output
RGB: rgb(255, 107, 107) | HSL: hsl(0°, 100%, 71%)
Extract all hex, RGB, and HSL color codes from CSS or text.
Generate harmonious colour palettes from a base colour.
Check WCAG AA and AAA contrast ratios for foreground and background colours.
Generate random colours in hex, RGB, and HSL formats.
Convert Markdown to HTML instantly.
Convert HTML markup to clean Markdown syntax.