ST
StringTools

Color Picker & Converter

Pick any color and instantly convert between HEX, RGB, HSL, HSB, and CMYK. Check WCAG contrast ratios and copy CSS-ready values with one click.

Pick a color to start
White Text4.47 : 1 · AA Large
Black Text4.70 : 1 · AA
#
R
G
B
H
S
L
C
M
Y
K
background-color: #6366f1;
color: rgb(99, 102, 241);
color: hsl(239, 84%, 67%);

What Is a Color Picker?

A color picker is a tool that lets you visually select a color and obtain its exact representation in various formats. Whether you are designing a website, building a mobile app, or creating brand guidelines, a reliable color picker eliminates the guesswork from choosing and communicating colors across teams and platforms.

Our color picker goes beyond simple selection. It converts your chosen color into every major format in real time: HEX for CSS shorthand, RGB for screen-based design, HSL for intuitive hue-based adjustments, HSB/HSV for compatibility with tools like Photoshop and Figma, and CMYK for print workflows. Every conversion runs locally in your browser with zero latency.

The tool also includes a built-in WCAG contrast checker so you can immediately verify whether your color meets accessibility standards when paired with black or white text. This makes it an essential companion for designers and developers who care about inclusive design.

Understanding Color Formats

HEX (Hexadecimal) — The most common color notation on the web. A six-character string preceded by # where each pair of characters represents the red, green, and blue channels in base-16. For example, #FF6432 means 255 red, 100 green, 50 blue. HEX is compact and universally supported in CSS, HTML, and design tools.

RGB (Red, Green, Blue) — Represents colors as three integers from 0 to 255 corresponding to the intensity of red, green, and blue light. RGB is the native color model for all digital screens and is used directly in CSS with the rgb() function. It is intuitive for understanding how light combines to produce colors.

HSL (Hue, Saturation, Lightness) — A cylindrical color model where Hue is an angle on the color wheel (0-360 degrees), Saturation is the intensity of the color (0-100%), and Lightness controls how light or dark it appears (0-100%). HSL is supported natively in CSS and is particularly useful when you need to create color variations by adjusting a single parameter.

HSB / HSV (Hue, Saturation, Brightness/Value) — Similar to HSL but uses Brightness instead of Lightness. At 100% brightness, you get the full-intensity color rather than white. HSB is the default model in Adobe Photoshop, Figma, and many other design applications, making it essential for designer-to-developer handoff.

CMYK (Cyan, Magenta, Yellow, Key/Black) — A subtractive color model used in print production. While screens add light to create colors, printers mix inks that absorb light. CMYK values range from 0-100% for each channel. Converting between CMYK and RGB is approximate because the two models have different color gamuts.

Color Picker Features

  • Visual color selection — Click the large color preview to open your system color picker and choose any color visually.
  • Real-time multi-format conversion — Instantly converts between HEX, RGB, HSL, HSB/HSV, and CMYK as you type or pick.
  • Editable input fields — Type values directly into any format field and all other formats update automatically.
  • One-click copy — Copy any formatted color string or CSS declaration to your clipboard with a single click.
  • Color history — Automatically saves your last 10 picked colors as clickable swatches for quick reuse.
  • WCAG contrast checker — See real-time contrast ratios against white and black text with pass/fail grading for AA and AAA levels.
  • CSS output — Get ready-to-paste CSS declarations for background-color and color in HEX, RGB, and HSL formats.
  • 100% browser-based — All conversions run locally with zero server calls. Your data never leaves your machine.

Common Use Cases

Web Design and CSS — Quickly convert between HEX and RGB for CSS, generate HSL values for creating consistent color palettes, and copy ready-to-use CSS declarations directly into your stylesheets. The HSL format is especially useful for creating hover states and theme variations by adjusting lightness or saturation.

Brand Identity and Style Guides — Document your brand colors accurately across all formats. Ensure consistent color reproduction by providing HEX codes for digital use and CMYK values for print materials in the same tool.

Accessibility Compliance — Use the built-in WCAG contrast checker to verify that your text colors meet accessibility standards before deploying to production. The tool shows contrast ratios against both white and black backgrounds, helping you choose text colors that work for all users.

Design-to-Developer Handoff — Bridge the gap between design tools that use HSB/HSV and CSS that uses HEX, RGB, or HSL. Designers can input their Figma or Photoshop color values and instantly get the corresponding CSS code for developers.

Print Production — Convert digital RGB colors to approximate CMYK values for print projects. While exact print matching requires ICC profiles and proofing, this tool gives you a reliable starting point for CMYK conversion.

Frequently Asked Questions

How do I convert HEX to RGB?

A HEX color code like #FF6432 represents red, green, and blue channels in hexadecimal. To convert, take pairs of characters: FF = 255, 64 = 100, 32 = 50, giving you rgb(255, 100, 50). Our tool does this conversion instantly as you type.

What is the difference between HSL and HSB/HSV?

Both HSL and HSB use Hue and Saturation, but differ in the third component. HSL uses Lightness (0% = black, 100% = white, 50% = pure color), while HSB/HSV uses Brightness/Value (0% = black, 100% = full brightness). HSL is more common in CSS, while HSB is used in design tools like Photoshop and Figma.

What is WCAG contrast ratio and why does it matter?

The WCAG contrast ratio measures the relative luminance difference between two colors. A ratio of at least 4.5:1 is required for normal text (AA level) and 7:1 for enhanced contrast (AAA level). Meeting these standards ensures your text is readable for users with visual impairments.

Is this color picker free to use?

Yes. This color picker and converter is completely free with no signup required. All color conversions run locally in your browser. No data is sent to any server.