Home › Image Tools › Color Picker

Color Picker

Drag in the color field and hue bar, or type any code, and every format updates instantly: HEX, RGB, HSL, HSV and CMYK. Grab a color from anywhere on your screen with the eyedropper, save favorites and copy ready-to-use CSS.

Aa
#2F6B4F
RGB
HSL
HSV
CMYK
Saved

Tints mixed with white

Shades mixed with black

Harmonies

Advertisement
Advertisement

How to use the Color Picker

  1. Choose a hue on the rainbow bar, then drag the circle in the big field: left to right adds saturation, bottom to top adds brightness.
  2. Or type a code: paste a HEX value, RGB numbers, HSL, HSV or CMYK and the picker jumps to that color.
  3. Pick from your screen with the Pick from screen button, then click any pixel in any window (supported in Chrome, Edge and Opera).
  4. Copy the format you need with its Copy button. Click a tint, shade or harmony color to load it.
  5. Save colors you like with Save swatch. They stay in this browser for next time, and you can copy them all as CSS variables.

Color formats explained

FormatExampleWhat the numbers meanUsed in
HEX#2F6B4FRed, green, blue as two hexadecimal digits each (00 to FF). An optional 4th pair is opacity.CSS, HTML, design tools
RGBrgb(47, 107, 79)Red, green and blue light from 0 to 255.CSS, screens, code
HSLhsl(152, 39%, 30%)Hue angle 0 to 360°, saturation and lightness in %. 50% lightness is the pure color.CSS, theming
HSV / HSBhsv(152, 56%, 42%)Hue, saturation and value (brightness). 100% value is the brightest version of the hue.Photoshop, Figma, pickers
CMYKcmyk(56%, 0%, 26%, 58%)Cyan, magenta, yellow and key (black) ink coverage in %.Print design

Conversion formulas

All conversions start from RGB values scaled to 0 to 1 (R' = R / 255, and so on), with max = the largest and min = the smallest of R', G', B'.

  • Hue (same for HSL and HSV): if max = R', H = 60 × ((G' − B') / (max − min) mod 6); if max = G', H = 60 × ((B' − R') / (max − min) + 2); if max = B', H = 60 × ((R' − G') / (max − min) + 4).
  • HSV: V = max, S = (max − min) / max (0 when max = 0).
  • HSL: L = (max + min) / 2, S = (max − min) / (1 − |2L − 1|) (0 for grays).
  • CMYK: K = 1 − max, C = (1 − R' − K) / (1 − K), M = (1 − G' − K) / (1 − K), Y = (1 − B' − K) / (1 − K).

Rounding to whole numbers means converting back and forth can shift a value by one step; the picker keeps the exact value internally so the color does not drift while you drag.

Tints, shades and harmonies

A tint is the color mixed with white and a shade is the color mixed with black. The strips above mix in 10% steps in RGB, which gives an even ramp for buttons, hover states and backgrounds. The harmony groups rotate the hue around the color wheel while keeping saturation and brightness: complementary is 180° away, triadic uses 120° steps, analogous uses neighbors 30° away, split complementary uses 150° and 210°, and tetradic uses 90° steps. For more options, open the Color Wheel or the Color Shades Generator.

Frequently asked questions

How do I pick a color from my screen?

Click Pick from screen and then click any pixel on your screen, even outside the browser window. This uses the browser's EyeDropper feature, which is available in Chrome, Edge and Opera on desktop. In Firefox and Safari, take a screenshot and use the Image Color Picker tool instead.

What is the difference between HSL and HSV?

Both use the same hue angle. In HSV (also called HSB) a value of 100% is the brightest version of the color, so pure red is hsv(0, 100%, 100%). In HSL, 100% lightness is always white and pure red is hsl(0, 100%, 50%). Design apps such as Photoshop use HSB in their pickers, while CSS uses HSL.

Why do the CMYK values not match my printer?

This tool uses the simple, device-independent RGB to CMYK formula: K = 1 - max(R, G, B) and C = (1 - R - K) / (1 - K), and so on. Real printing uses ICC color profiles for a specific press and paper, so a print shop may give slightly different numbers. Use the values here as a starting point.

How does opacity appear in the codes?

When opacity is below 100%, the HEX code gets a fourth pair of digits (for example #2F6B4F80 is about 50% opacity), and rgb() and hsl() get an alpha value. All modern browsers support these formats in CSS.

Are my saved colors private?

Yes. Saved swatches are stored only in your browser's local storage on this device. Nothing is sent to a server, and clearing your browser data removes them.

What does the contrast ratio mean?

It is the WCAG 2 contrast ratio between the picked color and white or black text. Normal text needs at least 4.5:1 to pass level AA and 7:1 for AAA; large text needs 3:1.

Related tools

HTML Color CodesAll 140 HTML color names with HEX and RGB codes, plus the 216 web-safe colors. Click to copy.Image Color PickerPick any pixel colour from an image and get HEX, RGB, HSL plus a paletteColor Shades GeneratorTurn one HEX color into a 50-950 scale plus tints, shades and tones, ready to export.Color Palette GeneratorGenerate beautiful color palettes and export them.Color Blindness TestQuick 14-plate dot test that screens for red-green and blue-yellow color vision deficiency.Background RemoverRemove image backgrounds automatically with AI.Image to Text (OCR)Extract text from images, screenshots and photos with OCR in 25+ languages, right in your browser.Image CompressorShrink images to a target size like 100 KB.Image ResizerResize images to any size without losing quality.Compress Image to 20KBShrink any photo to under 20KB (or any target size).Compress JPEG to 50KBShrink photos to under 50KB for forms, passports and exams.HEIC to JPGConvert iPhone HEIC photos to JPG.WEBP to JPGConvert WEBP images to JPG in bulk.PNG to JPGBatch convert PNG images to JPG with a background color.JPG to PNGBatch convert JPG images to PNG.Image CropperCrop images, including circle crops for profile pictures.Rotate & Flip ImageRotate images by any angle or mirror them, one or many at once.Meme GeneratorMake memes with classic templates and custom text.Collage MakerCombine photos into a grid collage.Add Watermark to PhotoAdd a text or logo watermark to one or many photos at once.Blur Image & Face Pixelate ToolBlur or pixelate faces, plates and backgrounds in a photo.Pixelate Image & Pixel Art ConverterTurn any picture into pixel art with retro palettes and dithering.Logo MakerDesign a text logo with fonts, icons and colors, then save SVG or PNG.Certificate MakerDesign certificates from templates and export one or many as PDF.WEBP to PNGConvert WEBP images to PNG, keeping transparency.SVG to PNGConvert SVG graphics to PNG or JPEG at any scale.PNG to ICOCreate multi-size favicon .ico files from PNG.GIF MakerTurn videos and images into GIFs, trim and compress.Business Card MakerDesign business cards and download a print-ready PDF.Flyer MakerDesign printable and social media flyers from free templates.Poster MakerDesign posters in A0–A5 and US sizes and download a print-ready PDF.Invitation Card MakerCreate printable birthday, wedding and party invitations for free.HEX to RGBConvert HEX colors to RGB and other formats.RGB to HEXConvert RGB to HEX with sliders, live swatch and one-click copy.HEX to HSLConvert HEX colors to HSL and back with interactive sliders.RGB to CMYK ConverterConvert RGB and HEX colors to CMYK for print, and back.Color Contrast CheckerCheck WCAG contrast ratios and find accessible text colors.Pantone to HEXLook up approximate HEX, RGB and CMYK values for Pantone colors.Color Name FinderFind the closest color name for any HEX or RGB color.AVIF to JPGConvert AVIF images to widely supported JPG.PNG & JPG to WEBPConvert PNG and JPG images to smaller WEBP files.Aspect Ratio CalculatorCalculate image sizes for 16:9, 4:3 and any ratio.Thumbnail Safe ZonePreview YouTube and TikTok thumbnail safe zones.Color Blindness SimulatorSee any image as people with protanopia, deuteranopia, tritanopia or achromatopsia see itAdd Text to ImageAdd styled text layers with outline and shadow to any photo, then downloadThumbnail MakerDesign 1280×720 YouTube thumbnails with templates, bold text and stickersImage Border AdderAdd a border, rounded corners, matte and shadow to a photo onlineWallpaper GeneratorCreate gradient and pattern wallpapers sized for any phone, tablet or desktopRound Corners ImageGive any picture rounded, circle or squircle corners and save a transparent PNG.Printable Calendar MakerMake a printable month or year calendar with holidays, then print or save PDF.YouTube Thumbnail GrabberPaste a YouTube link to get every thumbnail size, from HD 1280x720 down to 120x90.Tailwind Color GeneratorTurn one color into a full Tailwind 50–950 shade scale and export the config or CSS.Image Flipper & MirrorMirror photos horizontally or flip them vertically, one image or a whole batch.Printable Planner GeneratorDesign daily or weekly planner pages with your dates and colors, then print them as a PDF.CSS Gradient GeneratorDesign linear, radial and conic CSS gradients with draggable stops and export CSS or PNG.Grayscale Image ConverterTurn color photos into black and white with luma, luminance or average methods and sepia.Graph Paper GeneratorMake printable square, dot, isometric or hex graph paper and download it as PDF, PNG or SVG.Color MixerMix two colors in sRGB, linear, OKLab or OKLCH, or blend them with Photoshop-style modes.Photo FiltersApply 27 one-click photo filters like Vintage, Noir and Teal & Orange with an intensity slider.Lined Paper GeneratorCreate printable lined paper: wide, college or handwriting ruling, Cornell notes, PDF or PNG.Random Color GeneratorGenerate random HEX colors one at a time or in batches, with hue, saturation and lightness ranges.Photo EditorEdit photos online: brightness, contrast, saturation, crop, rotate, flip and filters with undo.Chart MakerMake bar, line, area, pie and doughnut charts from a simple table and download PNG or SVG.Color WheelFind complementary, triadic, analogous and other color harmonies on an interactive wheel.Image SharpenerSharpen soft or slightly blurry photos with a real unsharp mask and before/after view.Venn Diagram MakerMake 2- or 3-circle Venn diagrams from lists; overlaps are found for you. Export PNG or SVG.Invert Image ColorsTurn any picture into a color negative, with R/G/B channel toggles and an intensity slider.Mind Map MakerBuild mind maps fast with keyboard shortcuts and auto layout, then export PNG, SVG or JSON.Image SplitterSplit an image into a rows × columns grid of tiles and download them one by one or as a ZIP.Org Chart MakerType an indented list of names and titles and get a clean org chart to download as PNG or SVG.Image CombinerCombine images side by side, stacked or in a grid, with spacing, background color and alignment.Timeline MakerCreate horizontal or vertical timelines from dated events with colors, then save PNG or SVG.Screenshot BeautifierPut screenshots on gradient backgrounds with padding, rounded corners, shadow and a browser frame.Gantt Chart MakerPlan tasks with dates, progress and dependencies on a Gantt chart, then export PNG or CSV.Image UpscalerEnlarge images 2×, 3× or 4× with Lanczos-3 or bicubic resampling and optional sharpening.Word Cloud GeneratorTurn any text into a word cloud in shapes like a heart or star, then save it as PNG or SVG.Image Metadata ViewerSee a photo's EXIF data: camera, lens, exposure, date and GPS location, then strip it in one click.Pie Chart MakerMake pie and donut charts with labels, percentages and a legend, then download PNG or SVG.Favicon GeneratorMake a favicon.ico, PNG icons, apple-touch-icon and web manifest from an image, text or emoji.Passport Photo MakerMake passport and visa photos for any country and print them on a 4x6 sheet.PNG to SVG ConverterConvert PNG or JPG images to scalable SVG vectors with color and detail control.EXIF RemoverRemove EXIF, GPS location and other metadata from JPG, PNG and WEBP photos.Image DPI ChangerChange the DPI of JPG and PNG images without re-encoding, and see the print size.Online PaintDraw and paint in your browser: brushes, shapes, fill bucket, text, undo and PNG export.Signature MakerDraw or type your signature and download it as a transparent PNG or SVG.Color Palette from ImageExtract the main colors of any photo as HEX codes, CSS variables and a palette PNG.Photo to SketchTurn any photo into a pencil, charcoal or color sketch in your browser and download it.Image ConverterConvert images between JPG, PNG, WEBP, AVIF, BMP, GIF and ICO in batches, right in your browser.HEIC to PNGConvert iPhone HEIC and HEIF photos to lossless PNG in batches, with ZIP download.