Color Converter
Convert between HEX, RGB, HSL, and HSV color formats instantly.
Convert a colour across the four notations that turn up most in design and code — HEX (#RRGGBB and #RGB shorthand), RGB, HSL, and HSV / HSB. A live swatch updates as you edit any field, and every conversion pivots through RGB so round-trips never drift beyond integer rounding. Useful for pasting a Figma-picked HSL value into a Tailwind config that wants HEX, or rounding a brand colour into the four notations a style guide needs. Conversion runs locally — colour values stay in the page.
Color Preview
HEX
Supports 3-char (#RGB) and 6-char (#RRGGBB) formats
RGB
Standard CSS format
Modern CSS format
HSL
Standard CSS format
Modern CSS format
HSV
Display format
Next steps
CSS Gradient Generator
RecommendedCreate linear, radial, and conic CSS gradients visually — copy the CSS output.
CSS Box Shadow Generator
RecommendedGenerate complex CSS box shadows visually with a live preview.
Pick colors
Pick any color from an image — get HEX, RGB, HSL, and a full palette.
Color Palette Generator
Pull a beautiful color palette from any image — export as CSS or JSON.
What is Color Conversion?
Common Use Cases
Building a design-token palette
Pick a base hue in HSL and step lightness in 10% increments to generate the 50/100/200/.../900 shades modern design systems expect.
Translating Figma to CSS
Copy an HSV value out of Figma's colour panel and paste it here to get the equivalent HEX and modern hsl() syntax for your stylesheet.
Theming with CSS variables
Store HSL components separately (--h, --s, --l) so you can change saturation or lightness without touching hue when switching between light and dark modes.
Accessibility contrast prep
Adjust HSL lightness to push a foreground/background pair past WCAG AA (4.5:1) before plugging the result into a contrast checker.
Frequently Asked Questions
Advertisement