Color Converter – HEX, RGB, HSL, CMYK + WCAG Checker and Color Blindness Simulator
Convert HEX, RGB, HSL, HSV, and CMYK color codes instantly. Type in any field and all formats update in real time. Beyond basic conversion, this free tool adds features that most dedicated color tools charge for: a live WCAG 2.1 contrast checker, a color blindness simulator for five vision types, all five color harmony types, a full 50–900 design token scale, and both linear and radial gradient generation.
Every swatch in the harmony and history panels has a Use as base button so you can explore color relationships without re-entering values manually. The Color History row tracks your last eight picks and lets you restore any of them instantly. The CSS Variables export includes H, S, and L components separately — useful for building alpha variants and dynamic themes entirely in CSS.
Advanced features not found on other color converters
WCAG 2.1 Contrast Checker
See live contrast ratios against white and black with Pass/Fail badges for AA and AAA at both normal and large text sizes. A live text preview shows exactly how your color reads against each background — no separate tool needed.
Color Blindness Simulator
Instantly preview your color as seen by people with protanopia, deuteranopia, tritanopia, and achromatopsia using scientifically validated transformation matrices (Machado et al. 2009). Most color tools skip this — this one treats it as a first-class feature.
Color History (Last 8)
Every color you pick is saved in a scrollable history row. Click any past swatch to restore it instantly — ideal when comparing options or backtracking after an experiment.
All 5 Harmony Types
Most tools show complementary only. This tool generates complementary, analogous, triadic, split-complementary, and tetradic palettes in one click. Every swatch has a Use as base button to continue exploring from that color.
Full 50–900 Color Scale
The CSS Variables export includes a complete Tailwind-style 50–900 scale derived from your base color — ready to drop into a Tailwind config, CSS design token file, or style dictionary with zero extra calculation.
Linear and Radial Gradients
Choose linear or radial gradient type, set the angle with a slider, and copy the ready-to-paste CSS string. The live preview updates as you type so you see exactly what will render in the browser.
How to use the Color Converter
- Enter a color: type a HEX code (with or without #), use the color picker, or enter values in any RGB, HSL, HSV, or CMYK field. All formats update instantly.
- Copy what you need: click the copy icon next to any field, or use Copy All to grab every format at once.
- Check accessibility: scroll to the Accessibility section to see WCAG contrast ratios and Pass/Fail badges for AA and AAA at normal and large text sizes.
- Simulate color blindness: the Color Blindness Simulator shows how your color looks to users with protanopia, deuteranopia, tritanopia, and achromatopsia.
- Explore harmonies: pick a harmony type to see balanced palette options. Click Use as base on any swatch to continue from that color.
- Export for code: copy CSS variables with the full 50–900 scale, or export palette JSON for scripting and design automation.
Color formats explained
- HEX — the standard for web and CSS. Short (#fff) and full (#ffffff) are both accepted. Used in HTML, CSS, SVG, and design handoff.
- RGB — red, green, blue channels (0–255). Native to digital screens and directly supported in CSS as
rgb()orrgba(). - HSL — hue, saturation, lightness. The easiest format to reason about when building CSS themes and design systems. Adjusting lightness in a single variable produces consistent tints and shades.
- HSV / HSB — hue, saturation, value (brightness). Common in graphics editors like Figma and Photoshop.
- CMYK — cyan, magenta, yellow, key (black). The standard for print. Values here are best-effort estimates; for production print, use your printer's ICC profiles.
Who uses this tool
- Front-end developers — convert brand colors to exact code strings, check WCAG compliance before merging, and export design tokens in one step.
- Designers — explore color harmonies, build tint/shade sets for component states, and hand off exact CSS variables to developers.
- Accessibility specialists — check contrast ratios for any color pair and simulate how palettes look for users with color vision deficiencies.
- Marketing and content teams — grab tints and shades for consistent thumbnails and banners without opening Figma or Photoshop.
- Students and hobbyists — learn how color models relate to each other with live, immediate feedback as you change values.
Related tools
- Bulk Image Resizer and Converter — resize and watermark images in your brand colors, export as WebP or JPEG, and download a ZIP.
- JSON Formatter — pretty-print or validate the palette JSON you export from this tool.
- Base64 Encoder and Decoder — encode color values or SVG data URIs for embedding in CSS or HTML.
- Case Converter — normalize color name strings or CSS variable names to consistent casing.
- URL Encoder and Decoder — encode HEX color values for use in query parameters and API calls.
- QR Code Generator — generate branded QR codes and adjust foreground and background colors.
- Hash Generator — generate deterministic color identifiers from strings using SHA hashing.
Accuracy notes
WCAG contrast ratios use the standard relative luminance formula from WCAG 2.1 (IEC 61966-2-1 linearization). Color blindness simulation uses transformation matrices published by Machado, Oliveira, and Fernandes (2009) and is an approximation — real perception varies by individual. CMYK values are best-effort estimates; for production print, use your printer's ICC profiles. Pantone/PMS mappings are proprietary and out of scope.
Frequently asked questions
How do I convert a HEX color to RGB online for free?
#3b82f6) into the HEX field. RGB, HSL, HSV, and CMYK values appear instantly. Click the copy icon next to RGB to copy it. No account or software required.How do I convert RGB to HEX online?
How do I convert HEX to HSL for CSS?
What is the difference between HSL and HSV?
What is the difference between RGB and CMYK?
What is WCAG contrast ratio and why does it matter?
What is the difference between WCAG AA and AAA?
How does the color blindness simulator work?
What color harmony types does this tool support?
What is the difference between tints and shades?
How does the 50–900 color scale work?
How do I generate a CSS gradient from my color?
How do I use the exported CSS variables in my project?
:root block with custom properties for HEX, RGB, HSL, individual H/S/L channels, the full 50–900 scale, and the gradient. Paste it into your CSS file and reference the variables throughout your stylesheet or Tailwind config.Is my color data uploaded anywhere?
Can I use split-complementary instead of complementary for softer contrast?
This tool is built to be fast, private, and thorough. Whether you need a quick HEX-to-RGB lookup or a full accessibility audit of a design palette, everything is one tab away — no signup, no upload, no waiting.