Back to all tools

Color Converter

Convert colors between HEX, RGB, and HSL formats. Includes a WCAG contrast ratio checker for accessibility compliance.

Frequently Asked Questions

How do I convert HEX to RGB?

Enter your HEX color code (e.g., #FF5733) in the HEX input field and the RGB values will be calculated automatically. Each pair of hex digits represents the red, green, and blue channels respectively.

What is the difference between HEX, RGB, and HSL?

HEX uses hexadecimal notation (#RRGGBB) and is most common in web development. RGB defines colors by red, green, and blue channel values (0-255). HSL uses hue (0-360 degrees), saturation (0-100%), and lightness (0-100%), which is often more intuitive for adjusting colors.

What is a WCAG contrast ratio?

The WCAG contrast ratio measures the luminance difference between two colors. A minimum ratio of 4.5:1 is required for normal text (AA level) and 7:1 for enhanced accessibility (AAA level). This tool calculates the ratio between your chosen foreground and background colors.