Chuyển đến nội dung chính

Công cụ chuyển đổi mã màu

Công cụ cho Nhà phát triển

HEX, RGB, HSL và CMYK

Xem nhanh kết quả

Color Code Converter: HEX, RGB, HSL and CMYK. Color Code Converter uses standard developer formulas to compute accurate results instantly.

HEX#3b82f6
RGB59, 130, 246
HSL217°, 91%, 60%
Gần Tailwindblue-500

Các bước quy đổi

  1. 1HEX #3b82f6 → RGB(59, 130, 246)
  2. 2HSL = (217.2°, 91.2%, 59.8%) — hue 217° places it in blue territory
  3. 3Nearest Tailwind palette color: blue-500 (ΔE² 0)
  4. 4Độ dốc dưới được tạo ra theo sự pha trộn đen trắng — bảng màu cấp sản xuất đề nghị dùng công cụ không gian màu OKLCH để lấy độ dốc đồng đều cảm nhận.

Đoạn mã CSS

--color-primary: #3b82f6;
--color-primary-rgb: 59 130 246;
color: #3b82f6;
color: rgb(59 130 246);
color: hsl(217 91% 60%);
background-color: color-mix(in srgb, #3b82f6 50%, white);

Độ dốc sáng tối (nhạt → đậm)

Nếu cần kiểm tra độ tương phản WCAG hãy dùng 'Công cụ kiểm tra độ tương phản màu'; nếu cần định dạng CMYK/HSV/in ấn hãy dùng 'Bộ chuyển đổi màu' (năm hệ thống) trong danh mục cuộc sống. Công cụ này tập trung xuất mã cho nhà phát triển.

Công cụ này có hữu ích cho bạn không?

Hướng dẫn sử dụng

  1. Paste or type content: drop code/text into the Color Code Converter or fill the parameters.
  2. Choose mode/options: switch format, rules or processing as needed.
  3. Live output: results appear instantly — nothing is submitted, data stays in your browser.
  4. One-click copy: copy the output straight into your development environment.

Điểm chính

  • Color Code Converter is a free online developer tool — open and use, no sign-up.
  • All calculations run locally in your browser; your data never leaves the device.
  • Key capability: HEX, RGB, HSL and CMYK.
  • Results come with formulas and reference tables so you can verify every number.

Công thức và nguyên lý hoạt động

Color Code Converter formula

Color Code Converter uses standard developer formulas to compute accurate results instantly.

Câu hỏi thường gặp

How do I use the Color Code Converter?
Open the page and fill in the input fields — results update automatically. HEX, RGB, HSL and CMYK.
Are the results accurate?
Yes. Standard formulas and conversion factors are used and verified.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. Everything runs locally in your browser.

Công cụ liên quan

Hướng dẫn liên quan

Nguồn và cập nhật

Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07

Cập nhật gần nhất:

Công thức và nội dung trên trang này đã được đội ngũ YiJianSuan kiểm tra lại, chỉ dùng để tham khảo học tập, các nghiệp vụ thực tế vui lòng tuân theo thông báo chính thức.

Nội dung được đội ngũ biên tập YiJianSuan duy trì và kiểm tra lại định kỳ, quy trình cập nhật và kiểm duyệt xem tạiQuy định biên tập.

Trích dẫn trang này: YiJianSuan. Công cụ chuyển đổi mã màu[EB/OL]. https://www.yijiansuan.com/vi/c/dev/dev-color

Kết quả do công cụ này cung cấp chỉ mang tính tham khảo, không cấu thành bất kỳ lời khuyên chuyên nghiệp nào, vui lòng dựa trên kết quả tính toán chính thức.