Color Converter
Convert colors between HEX, RGB, and HSL formats. Includes a WCAG contrast ratio checker for accessibility compliance.
Convert colors between HEX, RGB, and HSL formats. Includes a WCAG contrast ratio checker for accessibility compliance.
A color converter translates color values between different notation systems used in web development and design. The three most common formats are HEX (e.g., #FF5733), RGB (e.g., rgb(255, 87, 51)), and HSL (e.g., hsl(11, 100%, 60%)). Each format represents the same color differently, and developers often need to convert between them depending on the context.
This tool converts colors between HEX, RGB, and HSL formats, includes a visual color picker, and checks WCAG contrast ratios for accessibility compliance.
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.
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.
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.