Colour contrast checker
Check the contrast between text and background colour, and see if it meets the WCAG standard.
Colour tools
Colour tools
Write or paste a colour code and convert it to HEX, RGB, HSL, HSB and CMYK.
This tool runs entirely inside your browser. No file or text is sent to any server.
These forms are read: HEX with 3, 4, 6 or 8 digits, with # or without it; RGB, HSL, HSB (HSV) and CMYK written as functions, such as rgb(30, 144, 255); three numbers in a row for RGB; and CSS colour names, such as dodgerblue. Persian digits work too. Newer CSS forms, such as hwb, lab and oklch, are not recognised.
A CSS colour name is shown only when the colour is exactly one of the 148 known names, so most colours have no name. Some colours have more than one name, such as aqua and cyan.
HSL, HSB and CMYK are written in whole numbers. If you turn the code of one of them back into RGB somewhere else, it may differ from the first colour by a few steps; HEX and RGB are exact.
The colour is worked out only in your own browser and is never saved or sent anywhere.
Check the contrast between text and background colour, and see if it meets the WCAG standard.
Colour tools