Color Converter & Picker
Convert colors between HEX, RGB, HSL, and HSB. Check WCAG contrast and generate palettes.
Complementary
Analogous
Triadic
Split-Complementary
This tool converts colors between HEX, RGB, HSL, and HSB/HSV. Enter a value in any format and copy it out in the format your CSS, design tool, or style guide needs.
The Contrast tab checks a text and background pair against the WCAG AA and AAA ratios. The Palette tab generates shades, tints, and color harmonies from your selected color.
Web design
Pick and convert colors for websites, landing pages, and UI designs
CSS development
Get ready-to-use CSS values in hex, rgb(), and hsl() formats
Accessibility
Check WCAG contrast ratios so text stays readable
Brand colors
Convert brand colors between formats for style guides and design systems
How do I convert HEX to RGB?
Enter your HEX color code (e.g., #3b82f6) in the HEX input field. The tool converts it to RGB, HSL, and HSB values. You can also pick a color with the color picker.
What is the difference between HSL and HSB/HSV?
HSL (Hue, Saturation, Lightness) and HSB/HSV (Hue, Saturation, Brightness/Value) both describe colors using hue and saturation, but differ in the third component. HSL uses lightness (0% = black, 100% = white, 50% = pure color), while HSB uses brightness (0% = black, 100% = pure color). HSL is more common in CSS, while HSB is popular in design tools like Photoshop and Figma.
What WCAG contrast ratio do I need for accessible text?
WCAG 2.1 requires a minimum contrast ratio of 4.5:1 for normal text (AA level) and 3:1 for large text (AA level). For enhanced accessibility (AAA level), you need 7:1 for normal text and 4.5:1 for large text. Use the Contrast tab to check your color combinations.
How do color harmonies work?
Color harmonies are combinations of colors based on their position on the color wheel. Complementary colors are opposite each other (180 degrees apart), analogous colors are adjacent (30 degrees apart), triadic colors are evenly spaced (120 degrees apart), and split-complementary uses the two colors adjacent to the complement.
Can I generate a color palette from a single color?
Yes. The Palette tab shows 9 evenly spaced shades (darker) and tints (lighter) of your selected color. The Converter and Palette tabs also show harmony-based palettes (complementary, analogous, triadic, split-complementary).
Privacy first
All color conversions happen in your browser. Nothing is sent to a server.
Related tools
JSON Formatter
Format JSON online in your browser. Paste or upload JSON to tidy it with 2 or 4 space indents, find syntax errors, minify it or browse it as a collapsible tree.
JavaScript to JSON
Convert JavaScript object literals to valid JSON
JSON Merge
Merge two JSON objects online with a deep or shallow strategy and choose how arrays combine. Useful for config files and API responses. Free, no signup.