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.

Last updated:

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.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

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.Bash Prompt GeneratorDrag and drop a custom PS1 prompt for bash or zsh with colors, git branch and a live preview.Bubble Shooter GameAim, bounce and match 3 or more colored bubbles to pop them before the ceiling comes down.Change PDF Background ColorGive PDF pages a sepia, cream, pastel or custom background color behind the text.Color Blindness TestQuick 14-plate dot test that screens for red-green and blue-yellow color vision deficiency.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.Color Blindness SimulatorSee any image as people with protanopia, deuteranopia, tritanopia or achromatopsia see itTailwind Color GeneratorTurn one color into a full Tailwind 50–950 shade scale and export the config or CSS.Color MixerMix two colors in sRGB, linear, OKLab or OKLCH, or blend them with Photoshop-style modes.Random Color GeneratorGenerate random HEX colors one at a time or in batches, with hue, saturation and lightness ranges.Color WheelFind complementary, triadic, analogous and other color harmonies on an interactive wheel.Color Palette from ImageExtract the main colors of any photo as HEX codes, CSS variables and a palette PNG.Replace Color in ImageClick a color in a picture and swap it for a new color or transparency, keeping the shading.CMYK to RGBConvert CMYK percentages to RGB and HEX color codes with sliders and a live preview.HSL to HEXConvert HSL and HSLA colors to HEX and RGB with sliders and a live preview.HEX to RGBAConvert HEX color codes to CSS rgba() with an opacity slider and one-click copy.RGBA to HEXConvert rgba() colors to 8-digit HEX, or flatten transparency onto any background.HEX to CMYKConvert HEX color codes to CMYK percentages for print, with a live preview.HEX to PantoneFind the 5 closest Pantone-style solid coated colors for any HEX or RGB, ranked by Delta E.Color Temperature to RGBConvert a color temperature in kelvin (1000-40000 K) to RGB and HEX with a live swatch.OKLCH Color ConverterConvert HEX, RGB and HSL to OKLCH, OKLab, Lab and LCH with sRGB and P3 gamut checks.RGB to HSLConvert RGB values to HSL, HSV and HWB with a live swatch and copy-ready CSS.Color Code ConverterConvert a color between HEX, RGB, HSL, HSV, CMYK, LAB, LCH and OKLCH with a live swatch.Room Paint Color VisualizerUpload a room photo, select the walls and preview any paint color or HEX with real lighting.Photo to Pop ArtMake Warhol-style pop art from a photo: posterized color tiles in 1, 4 or 9 grids with custom palettes.Screen Color PickerPick any pixel color from anywhere on your screen and copy it as HEX, RGB or HSL.Solid Color Image GeneratorMake a plain single-color or transparent image in any size, like 1920x1080, as PNG or JPG.CMYK to HEXConvert CMYK percentages to a HEX color code and RGB, with a live swatch and shades.Photo Color MatchCopy the color grading of a reference photo onto your image (Reinhard color transfer).Underwater Photo Color CorrectionRestore lost reds and remove the blue or green cast from underwater photos by depth.
See all 38 Color Tools →