User Rating 0.0
Total Usage 0 times
Drop an image here or click to browse PNG, JPEG, WebP, GIF, BMP, SVG
Is this tool helpful?

Your feedback helps us improve.

About

Accurate color extraction from raster images requires reading raw pixel data, not eyeballing a zoomed screenshot. This tool renders your image onto an HTML5 Canvas, reads the exact R, G, B, A channel values at any coordinate using getImageData(), and converts them into HEX, HSL, and CMYK notations. The magnifier lens shows a grid-level view at up to 32× zoom so you can distinguish individual pixels in anti-aliased edges or compressed artifacts. Misreading a color by even 5 units in one channel can shift a brand color outside its acceptable ΔE tolerance. The tool also computes the nearest CSS named color using Euclidean distance in RGB space.

All processing runs locally in your browser. No image data leaves your device. Supported formats include PNG, JPEG, WebP, GIF, BMP, and SVG rasterized at native resolution. Note: CMYK conversion here is a mathematical approximation from RGB and does not account for ICC printer profiles. For print-critical work, use a profiled color management pipeline.

color picker pixel inspector eyedropper image color extractor hex color rgb viewer pixel magnifier

Formulas

RGB to HEX conversion concatenates each channel as a two-digit hexadecimal value:

HEX = # pad(R.toString(16)) + pad(G.toString(16)) + pad(B.toString(16))

RGB to HSL uses the min/max channel method:

L = Cmax + Cmin2
S = Δ1 |2L 1|

where Δ = Cmax Cmin, and H depends on which channel is the maximum.

RGB to CMYK conversion:

K = 1 max(R, G, B)
C = 1 R K1 K

where R = R ÷ 255. Same pattern applies to G and B.

Nearest named color uses Euclidean distance in RGB space:

d = (R1 R2)2 + (G1 G2)2 + (B1 B2)2

The color with the smallest d is selected as the nearest match.

Reference Data

CSS Named ColorHEXRGBHSLCMYK (approx.)
Alice Blue#F0F8FF240, 248, 255208°, 100%, 97%6%, 3%, 0%, 0%
Coral#FF7F50255, 127, 8016°, 100%, 66%0%, 50%, 69%, 0%
Crimson#DC143C220, 20, 60348°, 83%, 47%0%, 91%, 73%, 14%
Dark Slate Gray#2F4F4F47, 79, 79180°, 25%, 25%41%, 0%, 0%, 69%
Deep Sky Blue#00BFFF0, 191, 255195°, 100%, 50%100%, 25%, 0%, 0%
Gold#FFD700255, 215, 051°, 100%, 50%0%, 16%, 100%, 0%
Hot Pink#FF69B4255, 105, 180330°, 100%, 71%0%, 59%, 29%, 0%
Indigo#4B008275, 0, 130275°, 100%, 25%42%, 100%, 0%, 49%
Lavender#E6E6FA230, 230, 250240°, 67%, 94%8%, 8%, 0%, 2%
Lime Green#32CD3250, 205, 50120°, 61%, 50%76%, 0%, 76%, 20%
Medium Orchid#BA55D3186, 85, 211288°, 59%, 58%12%, 60%, 0%, 17%
Navy#0000800, 0, 128240°, 100%, 25%100%, 100%, 0%, 50%
Olive Drab#6B8E23107, 142, 3580°, 60%, 35%25%, 0%, 75%, 44%
Papaya Whip#FFEFD5255, 239, 21337°, 100%, 92%0%, 6%, 16%, 0%
Peru#CD853F205, 133, 6330°, 59%, 53%0%, 35%, 69%, 20%
Royal Blue#4169E165, 105, 225225°, 73%, 57%71%, 53%, 0%, 12%
Salmon#FA8072250, 128, 1146°, 93%, 71%0%, 49%, 54%, 2%
Sea Green#2E8B5746, 139, 87146°, 50%, 36%67%, 0%, 37%, 45%
Sienna#A0522D160, 82, 4519°, 56%, 40%0%, 49%, 72%, 37%
Steel Blue#4682B470, 130, 180207°, 44%, 49%61%, 28%, 0%, 29%
Teal#0080800, 128, 128180°, 100%, 25%100%, 0%, 0%, 50%
Tomato#FF6347255, 99, 719°, 100%, 64%0%, 61%, 72%, 0%
Turquoise#40E0D064, 224, 208174°, 72%, 56%71%, 0%, 7%, 12%
Wheat#F5DEB3245, 222, 17939°, 77%, 83%0%, 9%, 27%, 4%
Yellow Green#9ACD32154, 205, 5080°, 61%, 50%25%, 0%, 76%, 20%

Frequently Asked Questions

Color management profiles (ICC/ICM) affect how raw pixel data is interpreted. This tool reads the unmanaged RGB values directly from the canvas, which uses the sRGB color space by default. Applications like Photoshop may apply embedded ICC profiles, shifting displayed values. For consistency, convert your image to sRGB before inspection.
The CMYK values here are mathematical approximations derived from RGB channel ratios. Real CMYK output depends on the target printer's ICC profile, ink limits, and paper stock. For print production, use a color management system with device-specific profiles. This tool's CMYK output is useful for quick reference, not prepress.
Yes. JPEG uses lossy DCT-based compression that introduces artifacts, especially near sharp edges and in uniform color areas. A pixel that was originally rgb(255, 0, 0) might read as rgb(254, 2, 1) after JPEG encoding at quality 80. For exact color work, use lossless formats like PNG or WebP lossless.
The tool reads all four channels: R, G, B, and Alpha. When alpha is less than 255, the pixel is partially transparent. The displayed RGB values represent the raw channel data before compositing. The alpha value is shown separately. Canvas composites transparent pixels against a white checkerboard for display only.
The canvas renders only the first frame of an animated GIF. Pixel inspection applies to that static frame. For per-frame analysis, extract individual frames using a dedicated tool before loading them here.
The matching uses Euclidean distance in RGB space, which does not perfectly correlate with human perceptual difference. Two colors with the same numerical distance can look more or less different depending on the hue region. Perceptually uniform spaces like CIELAB (Delta E) give better results but require more complex conversion. The CSS named color set has only 148 entries, so gaps are inevitable.