Color Format Converter
Convert color codes seamlessly between HEX, RGB, HSL, HSV, CMYK, and modern CSS OKLCH. Features real-time alpha transparency, WCAG contrast preview, and color harmony generation. 100% private in-browser.
Converted Color Formats
Click any format to copyClassic 6-digit RGB hex string
8-digit hex including alpha channel
Standard CSS rgb() function
CSS rgba() with transparency
Hue, Saturation, Lightness
CSS hsla() with alpha channel
Hue, Saturation, Value (Design Tools)
Cyan, Magenta, Yellow, Key (Print)
CSS Color Module 4 perceptual space
Arbitrary background utility class
Custom property declaration
Color Harmonies & Palettes
Complementary
Directly opposite on the color wheel (+180°). High visual contrast.
Analogous
Adjacent colors on the wheel (-30°, +30°). Smooth and serene.
Triadic
Three evenly spaced colors (+120°, +240°). Vibrant and balanced.
Split-Complementary
Base color plus two adjacent to its complement (+150°, +210°).
Tetradic (Square)
Four colors spaced 90° apart (+90°, +180°, +270°). Rich palette.
Monochromatic
Same hue with varying lightness levels.
Tints & Shades Scale
Monochromatic lightness steps from dark shades to bright tints.
Traditional HSL creates uneven perceived brightness across hues (yellow looks blindingly bright while blue looks dark at 50% lightness). OKLCH is a modern perceptually uniform color space where 50% lightness feels equally bright regardless of hue.
RGB (Red, Green, Blue) is an additive model for luminous digital displays. CMYK (Cyan, Magenta, Yellow, Key/Black) is a subtractive model for physical ink printing. Not all bright monitor RGB colors can be reproduced in ink.
Web Content Accessibility Guidelines require a minimum contrast ratio of 4.5:1 for standard body text (Level AA) and 7:1 for enhanced accessibility (Level AAA). Large headings (18pt+) require 3:1 minimum.
How it works?
Enter Any Color Format
Type or paste any HEX, rgb(), hsl(), cmyk(), or standard CSS color name (e.g. #4f46e5 or crimson).
Adjust Transparency
Fine-tune the alpha slider to generate exact RGBA, HSLA, and 8-digit HEX values with transparency.
Instant Multi-Format Output
Real-time mathematical conversion produces CSS OKLCH, CMYK, HSV, and Tailwind arbitrary utility classes.
Explore Harmonies & Contrast
Review complementary and triadic harmonies, check WCAG 2.1 contrast against white/black, or export the palette.
Related Design & Developer Tools
Complementary web design utilities designed with instant, client-side browser performance.
SVG Optimizer
Minify, clean up, and optimize vector SVG assets for production web apps.
Image Metadata Viewer
Inspect technical camera EXIF, IPTC tags, and exposure parameters.
Percentage Calculator
Calculate proportions, percentage discounts, and relative differences.
Base64 Encoder / Decoder
Encode and decode text, SVG data URIs, and binary assets instantly.