How to convert a color
Pick a color or type a value into any of the HEX, RGB or HSL boxes; the other formats update immediately. Accepted forms include #4338ca, rgb(67, 56, 202) and hsl(245, 58%, 51%). Copy the format your CSS, design tool or code needs.
Checking readability
The contrast figures use the WCAG 2 relative-luminance formula. Use the suggested text color to keep labels on a colored button or banner readable.