Color contrast checker
Check text contrast between two colors against WCAG AA and AAA thresholds.
Color & designTurn a HEX color into matching RGB and HSL values for your stylesheet.
Adjust the example inputs, then select Convert color.
Convert an opaque 3- or 6-digit HEX color to RGB and HSL representations. The swatch lets you check the color while the output provides CSS values you can copy into a design or stylesheet.
Enter a HEX color such as #6D5EF6 or #ABC.
Convert the color to normalized HEX, RGB and HSL.
Copy the format needed by your design tool or CSS.
Each digit is repeated to make a 6-digit value. For example, #ABC expands to #AABBCC.
This converter uses opaque sRGB colors. Alpha channels, wide-gamut profiles and named CSS colors are not accepted as input.