Image Color Analyzer
Approximate the dominant colors in a JPG, PNG or WebP image using sampled pixels.
Pick a color with the browser color input and copy HEX, RGB or HSL values.
A color picker lets you choose a color visually or from an image, then copy hex, RGB and HSL.
This tool runs in your browser. Inputs, files and generated values stay on this device. Favorites and recently used tools, if you use them, store only tool names in local storage — never passwords, documents or QR contents. See the privacy policy.
Pick a color with the browser’s color control, or type a hex value, and copy HEX, RGB, and HSL. Designers grabbing one opaque color for CSS use it when they do not need to sample a photo. Alpha is not available, and sampling pixels from an image is the Image Color Analyzer.
#2563eb is a six-digit hex color: two digits each for red, green and blue.
The same color is rgb(37, 99, 235).
HSL describes hue, saturation and lightness. It is useful when you want to lighten or saturate a color.
HEX is a compact CSS color written in hexadecimal. RGB lists the same channels as decimal numbers from 0 to 255. HSL uses hue (0–360), saturation and lightness. The picker uses the browser’s native color input, so the system color UI appears on phones and desktops. Values are converted locally.
The native control supplies an opaque sRGB color. Alpha is not available, and a pixel is not sampled from a photograph. HEX, RGB, and HSL are three writings of that same color.
See the disclaimer for what these tools do not cover.
Approximate the dominant colors in a JPG, PNG or WebP image using sampled pixels.
Check WCAG contrast between foreground and background colors, with pass/fail for AA and AAA.
Convert 3-digit, 6-digit and 8-digit hex colors to RGB, RGBA and HSL in your browser.
Build linear, radial or conic CSS gradients, or gradient text, and copy the CSS or HTML.
Compress JPG, PNG and WebP images in your browser without uploading them.
Resize images in your browser. Set width and height, lock aspect ratio, then download.
Guide
Split a hex color into red, green, and blue pairs and convert each pair from base 16 to a number from 0 to 255.
Read guideGuide
Choose one opaque color with the browser color control and copy it as HEX, RGB, or HSL.
Read guideGuide
Sample a JPG, PNG, or WebP and list 3 to 10 colors with each color's share of the sampled pixels.
Read guideGuide
Compare two solid colors and read the WCAG 2 ratio, including AA and AAA for normal and large text.
Read guideGuide
Build a linear, radial or conic CSS gradient from at least two color stops and copy the background or gradient text CSS.
Read guideGuide
Set one offset, blur, spread, color, and opacity, then copy a single box-shadow declaration.
Read guideGuide
Draw PNG icons at 16, 32, and 180 pixels. The ICO file holds the 16 and 32 pixel images only.
Read guidePreview
HEX
#2563eb
RGB
rgb(37, 99, 235)
HSL
hsl(221, 83%, 53%)
HEX writes red, green and blue as hexadecimal digits, for example #2563eb.
RGB uses decimal channels from 0 to 255, for example rgb(37, 99, 235).
HSL describes hue, saturation and lightness of the same color.