Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Web Tools
  3. Color Picker
Add to favorites

Color Picker

Pick a colour visually, from the screen or by typing it, and copy it in ten formats with contrast, the nearest name and colour blindness previews.

Runs locally in your browserMore web toolsJump to full guide
Related readingUnderstanding Color Spaces: sRGB, Display P3, and When It Matters11 minCSS Gradients: A Complete Guide to Linear, Radial, and Conic13 min

Initializing in your browser…

You might also like

Color Converter

Convert colours between HEX, RGB, HSL, OKLCH, Lab and five more formats, check WCAG contrast, and preview colour-blind vision.

Image Color Palette Extractor

Extract the main colours of a photo as a palette with hex, RGB and HSL codes and their share of the picture, and export it as CSS, SCSS, Tailwind, JSON, CSV or GIMP.

CSS Gradient Generator

Design linear, radial and conic CSS gradients with live preview, vivid colour-space blending, and CSS or Tailwind code to copy.

Color Picker: a worked example

A brand guide gives you only #3B82F6, and your design tokens need the other notations, plus a decision on whether the button label on it should be black or white.

Typed

#3B82F6
What Color Picker produces

What the picker shows

HEX    #3B82F6                          exact
RGB    rgb(59, 130, 246)                exact
HSL    hsl(217.2, 91.2%, 59.8%)         exact
HWB    hwb(217.219 23.137% 3.529%)      exact
Lab    lab(54.619 8.765 -65.79)         exact
LCH    lch(54.619 66.371 277.589)       exact
OKLab  oklab(0.62308 -0.03325 -0.18505) exact
OKLCH  oklch(0.62308 0.18801 259.815)   exact
HSV    hsv(217.2, 76%, 96.5%)           exact
CMYK   cmyk(76%, 47.2%, 0%, 3.5%)       exact

On white 3.68:1   On black 5.71:1
Best text colour on it: #000000 at 5.71:1
Relative luminance 0.2355
Nearest CSS name: dodgerblue, dE2000 5.69

Every value reads back as exactly #3B82F6, so any of them can go into your tokens. The HSL line keeps one decimal because the rounded version, hsl(217, 91%, 60%), is a slightly different colour (#3C83F6). For the label, white text measures only 3.68:1 on this blue, below the 4.5:1 WCAG AA needs for normal text, while black measures 5.71:1 and passes, so the picker draws the label in black. The nearest named colour, dodgerblue, is a visible 5.69 units away, so the hex value is the one to keep.

About the Color Picker

Pick any colour from a saturation and brightness square, a hue bar, a preset or the screen itself, then copy it as HEX, RGB, HSL, HWB, Lab, LCH, OKLab, OKLCH, HSV or CMYK. The picker also shows its contrast against white and black, the best text colour to put on it, its nearest CSS colour name and how it looks with colour blindness.

Key features

  • Saturation and brightness square, hue bar, presets, random and screen eyedropper
  • Accepts hex, rgb(), hsl(), hwb(), lab(), lch(), oklab(), oklch(), hsv(), cmyk() and 148 names
  • Ten notations with copy buttons, each checked to read back exactly
  • Contrast against white and black, best text colour and WCAG luminance
  • Nearest CSS colour name by perceptual difference
  • Colour blindness simulation for four conditions
  • Saved colours that persist in your browser, and shareable links
  • Keyboard and touch support on the colour square

How to use

  1. 1Drag on the square and the hue bar, press a preset, or type a colour in any format.
  2. 2In Chrome or Edge, press From screen to pick a colour from anywhere on your display.
  3. 3Copy the notation you need from the list; each has its own copy button.
  4. 4Check the contrast panel before using the colour for text or backgrounds.
  5. 5Press Save to keep the colour in your saved swatches.

Picking a colour and using it

Four ways to pick. Drag on the square to set saturation (left to right) and brightness (top to bottom), and move the hue bar to change the colour family; both work by mouse, touch, and arrow keys. Choose one of eighteen preset swatches, press Random, or type or paste a colour in any notation, including names such as rebeccapurple and modern forms such as oklch(0.62 0.19 260). In Chrome, Edge and Opera, From screen opens the browser's eyedropper so you can take a colour from anywhere on your screen.

Every notation, exact. The colour is shown in ten notations, each with its own copy button. A rounded value can quietly be a different colour: hsl(217, 91%, 60%) looks like #3B82F6 but comes back as #3C83F6. So HSL is printed to one decimal, and every notation is read back and compared with the original; the badge beside it says exact when it returns the same 8-bit colour. Lab and LCH follow the CSS Color 4 definition, which uses the D50 white point that browsers use, so the values paste into a stylesheet as the same colour.

Contrast for text. The contrast panel gives the ratio of the colour against white and against black, the WCAG relative luminance, and whether it passes AA and AAA as text on white. The label on the big swatch is drawn in whichever of black or white has more contrast, chosen by measuring rather than by a brightness rule of thumb, which picks the weaker label for some blues.

Names and colour vision. The nearest of the 148 CSS colour names is found by perceived difference (CIEDE2000), with a note on how close it is. Under How it looks with colour blindness, the colour is simulated for protanopia, deuteranopia, tritanopia and achromatopsia, with how far each shifts, which helps when a colour has to stay distinguishable for everyone.

Saved colours and sharing. Save keeps the current colour in a row of swatches stored in your browser, so they are still there next time; press Saved on a selected colour to remove it. The current colour is part of the page address, so Share or a bookmark brings it back. Nothing is uploaded.

Examples

  • Design tokens from a brand hex

    Paste #3B82F6 and copy oklch(0.62308 0.18801 259.815) and hsl(217.2, 91.2%, 59.8%) straight into your tokens file; both read back as exactly the same colour.

  • Text on a coloured button

    For #3B82F6 the contrast panel shows white at 3.68:1 (fails AA for normal text) and black at 5.71:1 (passes), so the swatch label turns black.

  • Matching a colour on screen

    Press From screen in Chrome or Edge, click any pixel, and the picker loads that exact colour with all its notations.

Tips & best practices

  • Use OKLCH when you need lighter and darker versions of a colour: change only the first number and the hue stays put.
  • Check the contrast panel before choosing a text colour; the swatch label already shows the better of black and white.
  • Open the colour blindness view for colours that carry meaning, such as red and green status colours.
  • Bookmark the page with a colour selected to keep a quick reference to it.

Frequently asked questions

Why does HSL have a decimal place?

Whole-number HSL cannot describe most sRGB colours exactly; rounding to integers moves a colour by up to a few levels. One decimal place is enough to return the exact colour, which the exact badge confirms.

What is the difference between Lab and OKLab?

Both describe colour the way people perceive it. OKLab is newer and keeps hue more consistent as colours get lighter or darker, which makes it, and OKLCH, the better choice for building colour scales in CSS.

Why does the From screen button not appear?

It uses the browser's EyeDropper feature, which Chrome, Edge and Opera support and Safari and Firefox currently do not.

What does the contrast ratio mean?

It compares the brightness of two colours, from 1:1 (identical) to 21:1 (black on white). WCAG AA asks for at least 4.5:1 for normal text and 3:1 for large text.

Is the CMYK value print-ready?

No. It is a simple conversion from screen colour. Accurate print colours depend on the paper, ink and printer profile, so use your printer's colour settings for final artwork.

Where are my saved colours kept?

In your browser's local storage on this device. They stay until you remove them or clear your browser data, and they are not sent anywhere.

Related tools and how they differ

  • Color Converter: Converts one colour across every format with harmonies and a full contrast table, when conversion is the whole job.
  • Color Palette Generator: Builds a palette of matching colours from the one you picked here.
  • Image Color Palette Extractor: Pulls the main colours out of a photo or screenshot file.

Further reading

  • Understanding Color Spaces: sRGB, Display P3, and When It Matters11 min read
  • CSS Gradients: A Complete Guide to Linear, Radial, and Conic13 min read

Private by design

This runs as client-side JavaScript. Keys, tokens, payloads, and other inputs never leave your device.