Chuyển đổi màu giữa HEX, RGB và HSL với xem trước trực tiếp.
Cách dùng Chuyển đổi màu
Nhập một màu dạng HEX, ví dụ #ff8800.
Xem nó được chuyển đổi sang RGB và HSL ngay lập tức.
Sao chép định dạng nào bạn cần.
This is a color converter for web and design work that translates a color between the three formats you use most: HEX, RGB and HSL, with a live swatch so you can see exactly what you are working with.
This is the everyday glue between design and code: matching a brand color from a mockup to a CSS variable, converting a value a designer gave you in one format to the one your framework wants, or finding a slightly lighter shade for a hover state.
Everything runs in your browser, so it is instant and nothing you enter is sent anywhere.
Each format describes the same color differently. HEX (like #ff8800) is the compact form used throughout CSS and HTML. RGB states the red, green and blue channels directly, which is how screens and code such as canvas think about color. HSL describes hue, saturation and lightness, which is far more intuitive when you want to nudge a color: change the hue to shift it around the wheel, or the lightness to make it darker without picking a new code by hand.
Enter a HEX value and the RGB and HSL equivalents update instantly, so you can grab whichever format the tool or codebase in front of you expects.
For now the tool focuses on opaque colors in HEX, RGB and HSL; alpha (opacity) support is not included yet.
Câu hỏi thường gặp
HEX (#rgb hoặc #rrggbb), RGB và HSL. Nhập một giá trị HEX và các định dạng khác cập nhật trực tiếp.
Chưa. Công cụ này tập trung vào HEX, RGB và HSL không trong suốt. Hỗ trợ alpha có thể được thêm sau.
Nhúng công cụ này
Thêm công cụ này vào trang web của riêng bạn. Sao chép đoạn mã bên dưới; nó tự động cập nhật.
<iframe src="https://monu.tools/embed/vi/color-converter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>Công cụ liên quan
Chuyển đổi Unix timestamp sang ngày dễ đọc và ngược lại: UTC, giờ địa phương, ISO 8601 và thời gian tương đối. Giây và mili giây được tự động nhận diện.
Mã hóa và giải mã percent cho URL và thành phần URL, an toàn UTF-8.
Chuyển JSON sang CSV và CSV trở lại JSON, theo cả hai chiều. Chọn dấu phân tách, xử lý các trường có dấu ngoặc kép, và sao chép kết quả. Mọi thứ chạy trong trình duyệt của bạn.
Chuyển YAML sang JSON và JSON trở lại YAML, theo cả hai chiều. Kiểm tra hợp lệ khi chuyển và hiển thị lỗi rõ ràng. Mọi thứ chạy trong trình duyệt của bạn.