Convert between HEX, RGB, HSL, CMYK, LAB & 15+ formats — with WCAG accessibility checks built in.
Free color converter: HEX, RGB, HSL, CMYK, LAB, OKLAB & more • WCAG contrast checker + palette generator • Copy CSS/SCSS & export palettes
Convert between HEX, RGB, HSL, CMYK, LAB, OKLAB and over 15 other color formats instantly. This free online color converter also features a built-in WCAG contrast checker, palette generator, and one-click code export for developers and designers.
Whether you are building responsive websites, designing mobile apps, or preparing print layouts, our tool translates colors across every major format with mathematical accuracy—no signups, no tracking, and zero cost.
Why professionals trust this color converter: Convert a single HEX code into 15+ formats, verify accessibility contrast ratios, generate harmonious color palettes, and export ready-to-use CSS, SCSS, Tailwind configs, or PNG/SVG files. Everything runs instantly in your browser.
This free hex to rgb converter handles 18+ color models used across web development, print publishing, video production, game design, and scientific applications. All conversions happen locally in your browser for maximum speed and privacy.
| Format | Primary Use Case | Example Output |
|---|---|---|
| HEX / Short HEX | Web CSS, HTML design | #E34A85or#E48 |
| RGB / RGBA | CSS, Canvas, JavaScript | rgb(227, 74, 133) |
| HSL / HSLA | CSS animations, theming | hsl(335, 73%, 59%) |
| CMYK | Print design, publishing | cmyk(0%, 67%, 41%, 11%) |
| LAB / LCH | Color science, perceptual matching | lab(55%, 62, -12) |
| OKLAB / OKLCH | Modern CSS, HDR displays | oklab(0.62, 0.18, -0.04) |
| HSV / HWB | Color pickers, intuitive editing | hsv(335°, 67%, 89%) |
| CIE XYZ / YCbCr | Video processing, color management | xyz(0.312, 0.189, 0.098) |
| Decimal / Vec4 | Game development, shaders | vec4(0.890, 0.290, 0.522, 1.000) |
Stop manually formatting colors for your projects. Click the Export button to instantly copy or download your palette in the exact format your workflow requires:
tailwind.config.js.as constfor React, Next.js, and Vue projects.Do not guess if your color meets readability standards. This contrast ratio calculator automatically tests against pure white (#FFFFFF) and pure black (#000000) backgrounds, displaying clear compliance results for web accessibility.
WCAG 2.1 Guidelines at a glance:
- AA Normal Text: 4.5:1 contrast ratio or higher
- AA Large Text: 3:1 contrast ratio or higher
- AAA Enhanced: 7:1 contrast ratio or higher
Essential for ensuring your UI text, buttons, and interactive components remain readable for all users, including those with visual impairments. Use our free color contrast checker before shipping any design to production.
#E34A85), paste an RGB value, or pick visually using the native color picker.Pro Tip: PressCtrl+Shift+Cto instantly copy the current HEX code to your clipboard.
How do I convert HEX to RGB for CSS? Paste your HEX code into the input field. The tool instantly calculates and displays the exactrgb()andrgba()values. Click the copy button to paste directly into your stylesheet.
Can I export my color palette for Tailwind CSS? Yes. Click the Export button and select Tailwind Config. The tool generates a ready-to-pastetailwind.config.jssnippet with your palette mapped to the standard 50–900 utility scale.
What is the difference between HSL and RGB? RGB defines colors by mixing red, green, and blue light values, which matches digital screens. HSL uses hue, saturation, and lightness, making it much easier for humans to adjust shades and tints. Our tool shows both so you can work in your preferred format.
Is this color converter free and privacy-safe? Completely free with no signups, ads, or tracking. All calculations run locally in your browser. Your recent color history is stored securely in your browser's local storage only.
Can I use the CMYK output for professional printing? Yes, our CMYK converter provides a highly accurate mathematical approximation. However, for commercial print jobs, always verify colors with your printer's specific ICC profile and request a physical proof.
Bookmark this page for daily use, share it with your design team, or integrate the exported tokens into your CI/CD pipeline. Built for frontend developers, UI/UX designers, and accessibility specialists who demand precision, speed, and framework-ready output.
New color formats, export templates, and accessibility features are added regularly based on community feedback.