Color converter – HEX, RGB, HSL, CMYK and more
Pick a colour or paste any HEX, RGB or HSL value to convert it instantly. Get shades, tints and matching palettes, WCAG contrast scores, and ready code for CSS, Android (Kotlin/XML) and iOS (Swift).
Click a swatch to use it.
How to convert colours
- Pick a colour with the swatch, or type a value: HEX (#3D63E6 or #36E), RGB, HSL or a CSS name like tomato.
- Click any value to copy it – HEX, RGB, HSL, HSV, CMYK or ready code for CSS, Android, Flutter and Swift.
- Explore lighter tints and darker shades, matching colour schemes and contrast scores.
HEX vs RGB vs HSL
HEX (#3D63E6) is the short code used in websites and design tools. RGB (61, 99, 230) gives the red, green and blue light values from 0 to 255. HSL describes hue, saturation and lightness, which makes it easy to create lighter or darker versions of a colour. CMYK is used for print – the values here are a simple conversion, so check with your printer for exact results.
Colours in Android and iOS code
Android uses ARGB: the first two digits are the alpha (FF = fully opaque), so #3D63E6 becomes #FF3D63E6 in XML and Color(0xFF3D63E6) in Jetpack Compose and Flutter. Swift’s UIColor and SwiftUI use values from 0 to 1, which this tool calculates for you.
Is my colour accessible?
The WCAG guidelines ask for a contrast ratio of at least 4.5:1 for normal text (AA) and 3:1 for large text. Our contrast boxes show whether white or black text reads better on your colour – use the one that passes.
Frequently asked questions
How do I convert HEX to RGB?
Type or paste the HEX code (for example #3D63E6) and the RGB value appears instantly: rgb(61, 99, 230). Click it to copy.
How do I convert RGB to HEX?
Type the RGB value, such as rgb(61, 99, 230) or just 61, 99, 230 in rgb() format, and copy the HEX code shown.
How do I use a HEX colour in Android?
Add FF in front for full opacity: #FF3D63E6 in colors.xml, or Color(0xFF3D63E6) in Jetpack Compose.
What is a good contrast ratio?
At least 4.5:1 for normal text and 3:1 for large text to meet WCAG AA. 7:1 meets the stricter AAA level.
Is this color converter free?
Yes – free with no signup. Your last colour is remembered in your own browser only.
Need a website or app built?
We design and build websites and Android apps for clients worldwide – clear scope, fixed price, fast delivery.
Techpass Master Technologies · Websites, Android apps and digital marketing
