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.
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.