Color Picker and Converter
About this tool
About Color Picker & Converter
Type or paste a colour in whatever form you have it, such as #5b3df5, rgb(91 61 245), hsl(250 90% 60%), oklch(55% 0.24 280), cmyk(63%, 75%, 0%, 4%) or a CSS name like tomato, and every other format appears at once with its own copy button. Besides the web formats you also get HSV for design apps, the nearest CSS colour name, a 0xAARRGGBB value for Android and Flutter, and a SwiftUI initialiser. Use the native colour picker, or on Chrome and Edge pick any pixel on your screen with the eyedropper. Sliders for hue, saturation, lightness and opacity let you fine-tune the colour, and a row of tints and shades helps you find a lighter or darker neighbour. The contrast ratio against white and black tells you straight away whether it works for text. OKLCH values follow the CSS Color 4 maths and out-of-range colours are brought back into sRGB. Everything runs in your browser.
Built and maintained by Abhi JainUpdated
How to Convert a Colour
- 1
Enter a colour
Type or paste any colour into Enter any colour, use the Picker, or press Pick from screen.
- 2
Adjust it
Move the Hue, Saturation, Lightness and Opacity sliders, or click a tint or shade.
- 3
Copy a format
Press the copy icon next to HEX, RGB, HSL, OKLCH, CMYK or any other format.
Color Picker & Converter: questions and answers
How do I convert HEX to RGB?
Split the six hex digits into three pairs and convert each from base 16 to base 10. For #5B3DF5: 5B = 91, 3D = 61, F5 = 245, so the colour is rgb(91, 61, 245). Paste any hex code above to do it instantly.
What is OKLCH and why use it?
OKLCH describes a colour by perceived lightness (L), chroma (C) and hue (H). Unlike HSL, equal steps in L look equally different to the eye, which makes it ideal for building palettes and adjusting colours in CSS with oklch().
Is the CMYK value accurate for print?
It's the standard mathematical conversion, which is fine as a starting point. Real print colour depends on the paper, ink and ICC profile, so ask your printer for a proofed value for brand-critical work.
How do I pick a colour from my screen?
Press Pick from screen and click anywhere, including outside the browser window. This uses the EyeDropper API, which is available in Chrome, Edge and Opera on desktop. In other browsers, use the Picker swatch instead.
What is the difference between HSL and HSV?
Both use hue and saturation. HSL's lightness goes from black through the pure colour to white, while HSV's value goes from black to the pure colour. Design apps such as Photoshop and Figma often call HSV 'HSB'.
Ready-made Color Picker & Converter presets
Related Tools
- Color Palette GeneratorColour harmonies, tints and shades and a 50–950 scale, exported as CSS, Tailwind, JSON or PNG.
- Color Contrast CheckerCheck WCAG 2.2 AA and AAA contrast for text and UI, and get the nearest passing colour.
- Color Extractor from ImageExtract the dominant colours from any image and copy them as HEX, RGB or CSS variables.
- CSS Gradient GeneratorLinear, radial and conic CSS gradients with a live preview.