Color ConverterDeveloper Tools
Converts colors between HEX, RGB, HSL, HSV, and CMYK and checks WCAG contrast.
Make a color palette from image files in seconds: the dominant color, 5 to 12 main colors with HEX, RGB, and HSL codes, and a picker for any single pixel. Export the palette as CSS or JSON.
JPG, PNG, WebP, AVIF, GIF, or BMP, up to 50 MB. Ctrl+V pastes.
The palette comes from median cut, a classic way to split an image's colors into groups:
The pixel picker reads the full-size image, not the small copy, so it gives the exact stored value.
#f0b90b and 25% #1e2329 gives exactly those two colors, with shares of 75% and 25%, however many colors you ask for.The CSS export looks like this and can go straight into a stylesheet:
:root {
--color-1: #1f3a73;
--color-2: #f59e42;
}The JSON export lists each color with its HEX, RGB, HSL, and percentage. To turn one of the colors into other formats or check its contrast, use the Color Converter.
The color group that covers the most pixels. It is listed first, with its share of the image in percent.
Five or six cover most photos. Use more for busy pictures, or when you need a larger set for charts and themes.
Yes. Click or tap the image. The picker shows the HEX, RGB, and HSL value of that pixel and its position.
No. The image is read and analyzed in your browser.
Often used together with the Image Color Extractor.
Converts colors between HEX, RGB, HSL, HSV, and CMYK and checks WCAG contrast.
Builds linear, radial, and conic CSS gradients visually and copies the CSS.
Turns color images into grayscale or sepia, with a before/after slider.