ecsot
ToolsCategoriesBlogAboutContact
ecsot

Easy Conversions, Simple Online Tools

Useful things. Made simple.

A growing collection of simple, thoughtful online tools for everyday digital tasks.

© 2026 ecsot. All rights reserved.

Product

  • All Tools
  • Categories
  • Blog
  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Stay updated

New tools, useful updates and more.

Featured On
Launched on MarketingDBLaunched on MarketingDB

© 2026 ecsot. All rights reserved.

Made with ♡ for a simpler internet.

HomeToolsDesignColor Format Converter

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.

FastInstant CSS conversion
Private100% in-browser
Free to useFull harmony & OKLCH support
100% (1.00)
Tailwind Palette Presets:
#4F46E5100% Opacity
Accessibility & Readability
Preview: The quick brown fox jumps over the lazy dog.
Recommended text color: White (#FFFFFF)
vs White (#FFF)
AA Pass
6.29:1
vs Black (#000)
Fail
3.34:1

Converted Color Formats

Click any format to copy
HEX
#4F46E5

Classic 6-digit RGB hex string

HEX8 (Alpha)
#4F46E5FF

8-digit hex including alpha channel

RGB
rgb(79, 70, 229)

Standard CSS rgb() function

RGBA
rgba(79, 70, 229, 1)

CSS rgba() with transparency

HSL
hsl(243, 75%, 59%)

Hue, Saturation, Lightness

HSLA
hsla(243, 75%, 59%, 1)

CSS hsla() with alpha channel

HSV / HSB
hsv(243, 69%, 90%)

Hue, Saturation, Value (Design Tools)

CMYK
cmyk(66%, 69%, 0%, 10%)

Cyan, Magenta, Yellow, Key (Print)

CSS OKLCH
Modern
oklch(0.511 0.23 277)

CSS Color Module 4 perceptual space

Tailwind CSS
bg-[#4f46e5]

Arbitrary background utility class

CSS Variable
--color-primary: #4f46e5;

Custom property declaration

Color Harmonies & Palettes

Click any swatch to apply or copy
Complementary
2 Colors

Directly opposite on the color wheel (+180°). High visual contrast.

Analogous
3 Colors

Adjacent colors on the wheel (-30°, +30°). Smooth and serene.

Triadic
3 Colors

Three evenly spaced colors (+120°, +240°). Vibrant and balanced.

Split-Complementary
3 Colors

Base color plus two adjacent to its complement (+150°, +210°).

Tetradic (Square)
4 Colors

Four colors spaced 90° apart (+90°, +180°, +270°). Rich palette.

Monochromatic
5 Colors

Same hue with varying lightness levels.

Tints & Shades Scale

Monochromatic lightness steps from dark shades to bright tints.

10 Lightness Steps
10%
20%
30%
40%
50%
60%
70%
80%
90%
95%
Understanding Modern Color Formats & Color Spaces
Why CSS OKLCH Matters

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.

CMYK for Print vs RGB for Screens

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.

WCAG 2.1 Contrast Standards

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?

1

Enter Any Color Format

Type or paste any HEX, rgb(), hsl(), cmyk(), or standard CSS color name (e.g. #4f46e5 or crimson).

2

Adjust Transparency

Fine-tune the alpha slider to generate exact RGBA, HSLA, and 8-digit HEX values with transparency.

3

Instant Multi-Format Output

Real-time mathematical conversion produces CSS OKLCH, CMYK, HSV, and Tailwind arbitrary utility classes.

4

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.

View All Tools

SVG Optimizer

Minify, clean up, and optimize vector SVG assets for production web apps.

Open tool

Image Metadata Viewer

Inspect technical camera EXIF, IPTC tags, and exposure parameters.

Open tool

Percentage Calculator

Calculate proportions, percentage discounts, and relative differences.

Open tool

Base64 Encoder / Decoder

Encode and decode text, SVG data URIs, and binary assets instantly.

Open tool