HSL to HEX Converter
Convert HSL color values to HEX instantly — paste hsl(210, 100%, 50%) or the newer CSS4 space-separated syntax hsl(210 100% 50%), and get the hex code immediately. Perfect for the reverse workflow: if you've built a CSS design system with HSL custom properties or Tailwind's color config, use this to get hex codes back for Figma, Sketch, or client brand guidelines. No signup, live output, copy in one click.
FORMATS
Interior Design
Color Mixing
Start with ultramarine blue. Add tiny red for purple-blue, white for lighter shades.
Tints (Lighter)
Shades (Darker)
COMPLEMENTARY
TRIADIC
SPLIT COMPLEMENTARY
ANALOGOUS
:root {
--primary: #ff8c00;
--primary-hsl: 33, 100%, 50%;
--secondary: #008cff;
--accent: #ffcc00;
}
module.exports = {
theme: {
extend: {
colors: {
'brand': {
DEFAULT: '#ff8c00',
50: '#fff7ed',
...
}
}
}
}
}
$primary-color: #ff8c00; $secondary-color: #008cff; $accent-color: #ffcc00; $neutral-color: #f1f5f9;
{
"hex": "#ff8c00",
"hsl": "33, 100%, 50%",
"rgb": "255, 140, 0",
"name": "Dark Orange"
}
My Color Library
0Save your favorite colors. Synced across all color tools.
Import format info
Import a JSON file with this format:
[
{"hex": "#FF8C00", "name": "Orange"},
{"hex": "#3B82F6", "name": "Blue"}
]
What This Tool Does
Keyboard Shortcuts
Professional HSL Color Conversion Made Easy
HSL (Hue, Saturation, Lightness) is one of the most intuitive color models for designers. Unlike RGB, HSL lets you think about colors the way humans naturally perceive them - by their hue, how vivid they are, and how light or dark they appear.
Our HSL to HEX Converter provides instant, accurate color conversions with advanced features designed for modern workflows. Beyond simple conversion, we offer comprehensive color analysis including WCAG accessibility testing, automatic generation of shades and tints, color harmony schemes, gradient creation, and export in multiple formats.
How to Use the HSL to HEX Converter
Select Your Color
Use the HSL sliders to adjust Hue (0-360°), Saturation (0-100%), and Lightness (0-100%), enter a HEX code directly, or click "Pick Color" to use the visual color picker.
Check Accessibility
View WCAG contrast ratios against black and white backgrounds. AA and AAA compliance badges show instantly.
Explore Variations
Navigate through tabs to generate shades, tints, color harmonies, palettes, or gradients.
Export and Save
Copy individual colors, export code in your preferred format, or save to your personal library.
Understanding HSL Color Model
Hue (0-360°)
The color type on the color wheel. 0° is red, 120° is green, 240° is blue, and 360° wraps back to red.
Saturation (0-100%)
The intensity or purity of the color. 0% is gray, 100% is the most vivid version of the hue.
Lightness (0-100%)
How light or dark the color is. 0% is black, 50% is the pure color, 100% is white.
WCAG Accessibility
Automatic contrast ratio calculations with AA and AAA compliance indicators.
Color Harmony
Explore complementary, triadic, split-complementary, and analogous schemes.
Multi-Format Export
Export in CSS Variables, Tailwind Config, SCSS, or JSON format.