Color Converter
Convert between HEX, RGB, HSL, RGBA, and HSLA. Check WCAG contrast, generate palettes, and find Tailwind matches.
All Formats
#3b82f63b82f6rgb(59, 130, 246)hsl(217.2, 91.2%, 59.8%)--color: #3b82f6;blue-500Interactive Sliders
WCAG Contrast Checker
3.68:1
5.71:1
Color Palette
Complementary
Triadic
Analogous
Shades (darker)
Tints (lighter)
Tailwind CSS Quick Pick
What is a Color Converter?
A color converter translates colors between different notation systems: HEX (#ff5733), RGB (rgb(255, 87, 51)), HSL (hsl(14, 100%, 60%)), and named CSS colors. This tool includes a WCAG contrast checker for accessibility compliance, palette generators, Tailwind CSS color matching, and interactive sliders for fine-tuning colors.
Common Use Cases
- •Converting design tool colors (HEX) to CSS-friendly formats
- •Checking color contrast ratios for WCAG accessibility
- •Finding the closest Tailwind CSS color class
- •Generating complementary and analogous color palettes
- •Converting between color spaces for different platforms
Frequently Asked Questions
What WCAG contrast ratio do I need?
WCAG AA requires 4.5:1 for normal text and 3:1 for large text. WCAG AAA requires 7:1 for normal text and 4.5:1 for large text. Use this tool's contrast checker to verify your color combinations meet these standards.
When should I use HSL instead of HEX?
HSL (Hue, Saturation, Lightness) is more intuitive for creating variations — change lightness for shades/tints, saturation for vibrancy, and hue for completely different colors. HEX is more compact and widely supported in older tools.