UtilitySansar
Design

Color Picker

Pick any color visually with a saturation/brightness canvas, hue slider, opacity slider, browser eyedropper, and image pixel sampler. Copy values in HEX, RGB, RGBA, HSL, or CMYK — or search the full CSS named-color library by name or hex.

Tool Summary Answer Block

This tool accepts structured input and returns deterministic output in the browser with no server upload.

Tool name
Color Picker
Input intent
Provide source content to transform, validate, or analyze.
Output intent
Receive normalized output suitable for copy, reuse, or debugging.
Example input
Pick red
Example output
#ff0000 · rgb(255, 0, 0) · cmyk(0%, 100%, 100%, 0%)

Pick a colour you love.

Drag the canvas, tap any swatch, sample from your screen, or pick any pixel from an image upload or image URL. Every format copies in one click, and the matching-pair table below shows colours that play nicely together.

≈ royalblue#3b82f5
HEX
RGB
rgb(59, 130, 245)
RGBA
rgba(59, 130, 245, 1)
HSL
hsl(217, 90%, 60%)
CMYK
cmyk(76%, 47%, 0%, 4%)
Closest named color:

Pick from image or URL

Upload an image or paste an image URL, then click directly on the preview to sample a pixel.

Color sampling source
Aa
On white3.69:1
Normal textFailLarge textAA
Aa
On black5.70:1
Normal textAALarge textAAA

Shades & tints

Matching colour pairs

Click a row to set it as the current colour.
RolePair previewHEXCopy
Contrast 1.93:1
Contrast 1.09:1
Contrast 3.03:1
Contrast 1.03:1
Contrast 2.65:1
Contrast 1.70:1
Contrast 2.29:1
Contrast 1.16:1
Contrast 2.52:1

Named colors

Tool Introduction

Pick any color visually with a saturation/brightness canvas, hue slider, opacity slider, browser eyedropper, and image pixel sampler. Copy values in HEX, RGB, RGBA, HSL, or CMYK — or search the full CSS named-color library by name or hex.

Tool Overview

Most pickers stop at HEX and RGB. This one adds opacity (rgba and #RRGGBBAA), print-ready CMYK, desktop/screen sampling in supported browsers, and click-to-pick color extraction from image uploads or image URLs. A nearest-match label tells you the closest CSS named color for readability and handoff. Saved swatches live in memory only — nothing is uploaded.

Use Cases

  • Use Color Picker when you need fast interactive color picker with eyedropper support, image upload and url sampling, saturation/brightness canvas, hue and opacity sliders, hex / rgb / rgba / hsl / cmyk output, css named-color lookup, nearest-name matching, and saved swatches.
  • Handle design workflows directly in the browser with no install required.
  • Support SEO long-tail intent by covering quick checks, troubleshooting, and one-off conversions.

Input/Output Examples

Input Intent
Pick red
Output Intent
#ff0000 · rgb(255, 0, 0) · cmyk(0%, 100%, 100%, 0%)
Input Intent
Search "teal"
Output Intent
#008080 · rgb(0, 128, 128)
Input Intent
Opacity 50% on #3b82f6
Output Intent
rgba(59, 130, 246, 0.5) · #3b82f680

FAQ

What is the hex code for red, blue, green, and yellow?+
Red is #ff0000 (rgb 255,0,0), green is #008000 (rgb 0,128,0) — pure green in CSS is called "lime" #00ff00 — blue is #0000ff (rgb 0,0,255), and yellow is #ffff00 (rgb 255,255,0).
What are the hex codes for orange, purple, pink, and brown?+
Orange is #ffa500, purple is #800080, pink is #ffc0cb, and brown is #a52a2a. CSS also has named variants like darkorange (#ff8c00), hotpink (#ff69b4), and saddlebrown (#8b4513).
What are the hex codes for black, white, gray, and silver?+
Black is #000000, white is #ffffff, gray is #808080, and silver is #c0c0c0. Off-whites like whitesmoke (#f5f5f5) and ghostwhite (#f8f8ff) are useful for softer backgrounds.
What is the hex for teal, cyan, navy, and indigo?+
Teal is #008080, cyan/aqua is #00ffff, navy is #000080, and indigo is #4b0082. Royal blue (#4169e1) and dodgerblue (#1e90ff) are popular mid-blues.
What is CMYK and when should I use it?+
CMYK (cyan, magenta, yellow, key/black) is the subtractive model used by printers. Web and screens use RGB. If you are exporting for print — flyers, business cards, packaging — convert your RGB value to CMYK so the printer gets predictable ink mixing.
What does the #RRGGBBAA hex format mean?+
The last two hex digits encode alpha from 00 (fully transparent) to ff (fully opaque). For example, #ff000080 is 50%-opaque red. Modern browsers accept it in CSS directly.
How is the "closest named color" found?+
The tool computes Euclidean distance in RGB space between your color and every CSS named color, then returns the nearest one. It is a quick approximation — perceptual distance (CIEDE2000) is more accurate but overkill for most labeling.
Can I pick a color from an image URL?+
Yes. Paste an image URL and click Load URL, then click any pixel on the preview to sample that exact color. Some hosts block cross-origin image access; in that case, upload the file directly.
Can I sample color from my desktop screen?+
Yes on supported browsers via the EyeDropper API. Click Pick from screen and choose any pixel. If your browser does not support EyeDropper, use image upload/URL sampling instead.

Explore More Tools

Discover related utilities in the Design category below.

Browse all Design

Related tools

Handpicked utilities you might find useful