Dev tool

Color Picker

This color picker turns one color into everything you'll need for it. Pick a shade or type a HEX code, and you'll get the HEX, RGB, and HSL values at once, each ready to copy. It also builds tints and shades, finds the complementary color, and checks contrast against black and white. It's free, private, and loads instantly in the page, so grabbing a color in the right format for CSS or design takes a second, and you won't need an account. There's nothing to install, and they're all the standard codes your tools expect.

  • HEX, RGB, HSL
  • Tints and shades
  • Complement
  • Contrast check
  • Copy in a tap

Last updated August 3, 2026 HEX, RGB, and HSL Reviewed by the Calcowa team

HEX code
#3B5BDB your color

Tints and shades

Lighter to darker. Tap any swatch to make it the active color.

Complementary color

Text contrast (WCAG)

On white
4.8:1
On black
4.4:1
Quick answer

How to find or check a color code

To identify or check a color code, pick a shade above or paste a HEX code into the box. You'll see that color's HEX, RGB, and HSL values at once, plus a row of tints and shades, its complement, and a WCAG contrast check, so you can confirm exactly what any code looks like before you use it. It works as a color picker when you're starting fresh and as a hex code finder when you already have a value to look up.

The basics

How do color codes work?

A screen color is built from red, green, and blue light, each set from 0 to 255. HEX writes those three numbers in base 16, so #3B5BDB is red 59, green 91, blue 219, which is the same as the RGB form rgb(59, 91, 219). HSL takes a different angle: hue is the position on the color wheel from 0 to 360 degrees, saturation is how vivid it is, and lightness is how bright. They all point to one color, just in different words, and this picker converts between them instantly. It also mixes your color toward white or black for tints and shades, spins the hue halfway around for the complement, and runs the contrast math so your text stays readable. You don't have to do any of the conversion yourself, and you won't lose the exact value, since it's copy-ready in each format. That's handy when a design file gives you HEX but your CSS wants HSL. For print, designers reach for a fourth model, CMYK, which mixes cyan, magenta, yellow, and black ink instead of light; you'll find it alongside each color in the reference table below.

#3B5BDB = rgb(59, 91, 219) = hsl(227, 68%, 55%)
Step by step

Grabbing a color, step by step

Here's the quick routine for any project:

  1. 1

    Pick or pasteUse the swatch, or type a HEX code you already have.

  2. 2

    Read the codesYou'll see HEX, RGB, and HSL update together.

  3. 3

    Build a paletteTap a tint or shade if you'd like a lighter or darker tone.

  4. 4

    Copy what you needTap any code and it's on your clipboard for CSS.

Quick reference

Common colors in every format

A few familiar colors shown as HEX, RGB, HSL, and CMYK. The CMYK values are percentages of cyan, magenta, yellow, and black, the four inks used in print.

ColorHEXRGBHSLCMYK
Red#FF0000255, 0, 00, 100%, 50%0, 100, 100, 0
Green#00FF000, 255, 0120, 100%, 50%100, 0, 100, 0
Blue#0000FF0, 0, 255240, 100%, 50%100, 100, 0, 0
White#FFFFFF255, 255, 2550, 0%, 100%0, 0, 0, 0
Black#0000000, 0, 00, 0%, 0%0, 0, 0, 100
FAQ

Frequently asked questions

You pick a color from the swatch or type a HEX code, and the tool shows that same color in every common format at once: HEX, RGB, and HSL. It also builds a row of tints and shades, finds the complementary color, and checks the contrast against black and white. It all runs live in your browser, so you'll see each value update the moment you move the picker, and you can copy any code with one tap.

Paste the code into the HEX box, or pick a shade from the swatch. The tool reads it back as HEX, RGB, and HSL at once, and it draws the exact color on screen, so you can confirm what a code actually looks like before you use it. That makes it a quick hex code finder and checker: type a value you found in a design file, a screenshot, or someone else's CSS, and you'll see the color plus its tints, shades, complement, and contrast, all in one place. If the code is malformed, it flags that too.

They're three ways to write the same color. HEX is the six-digit code you see in CSS, like #3B5BDB, built from red, green, and blue in base 16. RGB lists those same channels as numbers from 0 to 255. HSL describes the color by hue, saturation, and lightness, which is friendlier when you want to nudge a shade lighter or shift the hue. This picker shows all three so you can grab whichever your project needs. Print work uses a fourth model, CMYK, which the reference table below also lists.

There are 16,777,216 of them. A hex code sets red, green, and blue each to a value from 0 to 255, which is 256 steps per channel, and 256 times 256 times 256 works out to 16,777,216 combinations. That's every color a standard screen can show. Each one has a matching RGB and HSL form, and this picker converts between them for whichever code you land on, so you're never stuck with just one format.

Use the tints and shades row. Tints mix your color toward white for lighter versions, and shades mix it toward black for darker ones, in even steps. Tap any swatch in that row and it becomes the active color, with every code updated. It's a quick way to build a palette from one starting color, like a hover state or a set of background tones, without guessing at the values.

It shows how readable text would be on your color, compared against both white and black, using the standard WCAG contrast ratio. A ratio of 4.5 to 1 or higher is the usual target for normal body text, and 3 to 1 works for large text. The picker flags whether each pairing passes, so you'll know at a glance if white or black text sits comfortably on your chosen background.

A complement is the color directly opposite yours on the color wheel, found by rotating the hue by 180 degrees. Complements create strong contrast and a lively pairing, which is why they show up in logos, charts, and call-to-action buttons. The picker calculates it for you and shows its swatch and codes, so you've got an instant accent color to try alongside your main one.

Yes to both. There's no sign-up, no limit, and everything loads instantly in the page, so the colors you pick never leave your device. Bookmark it for web design, CSS work, branding, or any project where you need a color in the right format fast. You'll have the HEX, RGB, and HSL codes, plus a palette and contrast check, in a second, and copying is one tap.

Keep going

Related tools

More developer and text tools.

Building a palette?

Pick a color above, or browse all the dev tools.

Dev Tools