We use cookies to understand how DevToolsHub is used and to improve your experience. You can choose which types of cookies to allow.
Pick colors and convert between HEX, RGB, HSL, and CMYK formats.
Loading...
Loading...
A color picker is an essential tool for anyone who works with digital colors — designers, developers, artists, and marketers alike. It allows you to select, preview, and convert colors across multiple color models, ensuring consistency across your projects. Whether you’re building a website, designing a mobile app, creating a brand identity, or putting together a presentation, a reliable color picker eliminates the guesswork from color selection and format conversion.
DevToolsHub’s Color Picker goes far beyond a simple color swatch. It provides real-time conversion between four major color formats — HEX, RGB, HSL, and CMYK — so you can grab a color from a design tool and instantly get the exact value you need for CSS, a design system, or a print workflow. The built-in contrast checker helps you meet WCAG accessibility guidelines by showing whether black or white text reads better on your chosen background. The shades generator creates a palette of lighter and darker variants, perfect for building color scales for UI components like buttons, badges, and hover states.
Everything runs entirely in your browser — no data is sent to a server, making it safe for proprietary brand colors and sensitive design work. The tool is fully responsive, works offline once loaded, and supports both light and dark themes for a comfortable experience in any environment.
#FF6B6B) into the input field. The tool validates it instantly and updates all other formats.Hexadecimal (HEX) is the most common color format in web development. It uses a base-16 representation prefixed with #, followed by six characters: two for red, two for green, and two for blue. Each pair ranges from 00 (0 in decimal) to FF (255 in decimal). For example, #FF6B6B represents red=255, green=107, blue=107 — a coral red. A 3-digit shorthand (e.g., #F00) expands each digit to its doubled form (#FF0000). HEX is the default format in CSS, HTML, and most design tools.
The RGB (Red, Green, Blue) model represents colors as a combination of three primary light channels, each ranging from 0 to 255. This is the additive color model used by screens and digital displays. In CSS, you write it as rgb(78, 205, 196). RGB is intuitive for understanding how much of each primary color is mixed, but it’s less convenient for tasks like creating a lighter or darker variant of a color — that’s where HSL shines.
HSL (Hue, Saturation, Lightness) is a cylindrical representation of the RGB model. Hue is an angle from 0° to 360° around the color wheel (red at 0°, green at 120°, blue at 240°). Saturation is a percentage from 0% (grayscale) to 100% (fully colored). Lightness goes from 0% (black) through 50% (normal) to 100% (white). HSL is particularly useful in CSS because you can create color variations by changing just one value — for example, reducing lightness for a darker shade or increasing saturation for a more vivid color. In CSS, you write it as hsl(177, 57%, 55%).
CMYK (Cyan, Magenta, Yellow, Key/Black) is the subtractive color model used in printing. Unlike RGB which adds light, CMYK starts with white paper and subtracts brightness using ink. Each component is a percentage from 0% to 100%, indicating how much of that ink is applied. The K (black) component is added because mixing C, M, and Y alone produces a muddy brown rather than true black. CMYK is essential when preparing designs for print production — business cards, brochures, packaging, and any physical media. For example, cmyk(62%, 0%, 23%, 20%) describes a teal color for print. Note that CMYK has a smaller gamut than RGB, so some vivid screen colors cannot be exactly reproduced in print.
Loading...