Pick a colour and convert between HEX, RGB, HSL, HSV and CMYK, with contrast checks and shades.
Colours are written in several formats: HEX for CSS, RGB and HSL for design tools, HSV in pickers, and CMYK for print. Converting between them by hand is tedious and rounding differences are common.
Pick a colour or type a value and copy it in any format. The tool also checks contrast against white and black to help you meet accessibility guidelines, and offers lighter and darker shades.
#4F46E5 equals rgb(79, 70, 229) and an indigo hue near 243 degrees in HSL.
Check that button text has enough contrast with its background.
You might also find these tools helpful.
WCAG: 4.5:1 is AA for normal text, 7:1 is AAA, 3:1 is AA for large text.