CSS Formatter
Beautify or minify CSS stylesheets.
Enter a color in any format and get the others instantly, with a preview and WCAG contrast ratios against white and black.
Runs in your browser. Your input is never uploaded.
Type a HEX, rgb() or hsl() value or use the picker.
Read the converted values.
Check the contrast ratio.
Input
#7C5CFCOutput
rgb(124, 92, 252) · hsl(252, 96%, 67%)Beautify or minify CSS stylesheets.
Convert numbers between binary, octal, decimal and hex.
Beautify HTML with consistent indentation.
WCAG AA needs 4.5:1 for normal text and 3:1 for large text.
This tool handles opaque colors.
RGB is integer based; HSL is rounded for readability.