🛠️ FreeTool.jp JP
FAQ Privacy Policy

Color Code Converter

Instantly convert HEX, RGB, HSL, HSV & CMYK. CSS variables output & WCAG contrast check

カラープレビュー
HEX
#FF5733
RGB
rgb(255, 87, 51)
HSL
hsl(11, 100%, 60%)
HSV
hsv(11, 80%, 100%)
CMYK
cmyk(0%, 66%, 80%, 0%)
CSS Var
--color-primary: hsl(11, 100%, 60%);

WCAG コントラスト比チェック

AA: 4.5:1以上(通常テキスト)/ AAA: 7:1以上 / AA Large: 3:1以上(大きい文字)

サンプルテキスト 4.00:1
vs 白背景 AA AAA AA Large
サンプルテキスト 4.00:1
vs 黒背景 AA AAA AA Large

About Color Code Converter

The Color Code Converter is a 100% client-side utility that handles the color format conversions frequently needed in web design and front-end development, right in your browser. It supports five major color formats: HEX (hexadecimal), RGB, HSL, HSV, and CMYK. Simply enter a color in any format and all other formats are calculated automatically.

A standout feature is direct output to CSS Custom Properties format (--color-primary: hsl(...)), allowing you to copy and paste color definitions directly into your design system. Full CMYK support means you can use the same tool for both web and print design workflows, eliminating the need to switch between tools.

The tool's greatest strength is its built-in WCAG 2.1 contrast ratio checker, which evaluates AA/AAA compliance against white and black backgrounds in real-time. This feature streamlines the implementation of accessible design practices. While many color converter tools focus purely on format conversion, this tool provides "all the information designers actually need" in a single, integrated solution.

All processing happens locally in your browser—no data is ever sent to a server, ensuring complete privacy. You can specify colors either visually using the color picker or by typing values directly, and you can copy any format's code with a single click.

How to use Color Code Converter

  1. Enter a color code (e.g., #FF5733, rgb(255, 87, 51), hsl(10, 100%, 60%), cmyk(0%, 66%, 80%, 0%)) in the text input field at the top, or use the color picker to select a color visually.
  2. The entered color is automatically detected and converted to all five formats (HEX, RGB, HSL, HSV, CMYK) plus CSS Custom Properties format.
  3. Click the 'Copy' button next to any format to copy the color code to your clipboard. The CSS variable format can be directly pasted into your design system.
  4. Check the WCAG Contrast Ratio section at the bottom to see contrast ratios and AA/AAA compliance levels against white and black backgrounds.

Benefits of Color Code Converter

  • [5 Formats + CSS Variables] Convert between HEX, RGB, HSL, HSV, and CMYK formats, plus output directly to CSS Custom Properties format (--color-primary: hsl(...)). Covers both web and print design workflows.
  • [Real-Time Conversion] All color formats are calculated and displayed instantly as you type, eliminating the need for manual calculations or switching between external tools.
  • [Accessibility Support] Built-in WCAG 2.1 contrast ratio evaluation (AA: 4.5:1, AAA: 7:1) helps you design accessible color schemes efficiently.
  • [Full Privacy Protection] All processing happens entirely in your browser. No color codes or settings are ever sent to a server.

他のカテゴリ

Design Tools の人気ツール TOP 10

Design Tools のすべてのツール (15件)