Color Code Converter & Contrast

Programmer Tools

Convert HEX, RGB, HSL, HSV, CMYK and inspect WCAG 2.1 contrast ratio and color harmony palettes.

Presets:
#6C6FAD
Alpha (투명도)100%
HEX
#6C6FAD
HEXA
#6C6FADFF
RGB
rgb(108, 111, 173)
RGBA
rgba(108, 111, 173, 1.00)
HSL
hsl(237, 28%, 55%)
HSV
hsv(237, 38%, 68%)
CMYK
cmyk(38%, 36%, 0%, 32%)

WCAG Contrast Ratio Inspector

On Pure White (#FFF)4.65:1
Sample Text Preview
AA (≥4.5) ✓AAA (≥7.0) ✗
On Dark Theme (#0C0C16)4.51:1
Sample Text Preview
AA (≥4.5) ✓AAA (≥7.0) ✗
#FAFAFC
4.46:1
Custom Background Preview
AA ✗AAA ✗

Color Harmony Palettes

Primary
#6C6FAD
Complementary
#ACA96C
Analogous 1
#6C8FAC
Analogous 2
#896CAC
Triadic
#AC6C6F

How to Use & Features

The Color Code Converter & Contrast allows you to convert HEX, RGB, HSL, HSV, CMYK and inspect WCAG 2.1 contrast ratio and color harmony palettes. Enter your input parameters and configure options (color converter, hex to rgb, hsl, cmyk, wcag contrast, color palette) to compute accurate real-time results without page reloads.

  • Input your value or expression into the designated field.
  • Select desired source/target units or calculation modes from tabs or dropdowns.
  • Click the copy button beside the result to copy to your clipboard instantly.

Calculation Principle & Governing Formula

The Color Code Converter & Contrast models convert hex, rgb, hsl, hsv, cmyk and inspect wcag 2.1 contrast ratio and color harmony palettes using verified mathematical and domain standards. It validates boundary conditions and minimizes floating-point rounding errors across color converter, hex to rgb, hsl, cmyk, wcag contrast, color palette calculations. Implements IEEE-754 floating-point encoding, Two's Complement arithmetic, UTF-8 byte serialization, RFC 4648 Base64, RFC 1321 MD5, Web Crypto SHA-2/HMAC, and WCAG 2.1 contrast standards.

Lrel = 0.2126Rs + 0.7152Gs + 0.0722Bs, CR = Lmax + 0.05Lmin + 0.05

Color Code Converter & Contrast Numerical Walkthrough

Input scenario: Convert brand color #6C6FAD to RGB, HSL, CMYK & WCAG contrast

Step 1 (Formula substitution): Substitute the normalized parameters into the Color Code Converter & Contrast governing equation.

Step 2 (Computed output): RGB(108, 111, 173) / HSL(237°, 29%, 55%) / Contrast 4.62:1

Usage Tips & Considerations

  • All hashes, Base64 strings, and JSON payloads are processed 100% locally in your browser without server transmission.
  • Arbitrary-precision BigInt arithmetic prevents integer overflow on 64-bit+ numbers.

Frequently Asked Questions

Q. What should I check when entering values into the Color Code Converter & Contrast?

Ensure that your inputs for color converter, hex to rgb, hsl, cmyk, wcag contrast, color palette use the expected units and valid domain ranges. For instance, evaluating 'Convert brand color #6C6FAD to RGB, HSL, CMYK & WCAG contrast' yields 'RGB(108, 111, 173) / HSL(237°, 29%, 55%) / Contrast 4.62:1' using standard formulas.

Q. Is it safe to paste sensitive JSON or strings into these developer tools?

Yes. Every programmer utility runs strictly client-side in your browser with zero network calls.

Related Calculators