SnipKit
CSS GeneratorsLayout & SizingColor ToolsCode UtilitiesWordPressBlog
SnipKit

Code snippets that actually work. Finally.

Tools

  • CSS Generators
  • Layout & Sizing
  • Color Tools
  • Code Utilities
  • WordPress

Resources

  • Blog
  • About
  • Contact
  • Privacy
  • Terms

© 2026 SnipKit · Built by Jeremiah Ruanes

This site uses Google Analytics to measure traffic. See the privacy policy for details.

SnipKitColor Tools

Color Tools

Generate palettes, check contrast, and convert formats — with OKLCH math under the hood.

Palette generator, WCAG contrast checker, HEX/RGB/HSL/OKLCH converter, and a shade and tint scale generator. The math runs in OKLCH so the results look right, not just compute right.

4 tools available

Palette Generator

Popular

Generate color palettes from a base color using harmony modes

Contrast Checker

Check WCAG contrast ratios between foreground and background colors

Color Converter

Convert colors between HEX, RGB, HSL, and OKLCH

Shade & Tint Generator

Generate a 10-step tint and shade scale from a base color

5 min read

What are color tools?

Color tools cover three jobs: generating a palette, checking accessibility, and converting between formats. Color is the area of CSS where the math matters most — #808080 is not actually a perceptual midpoint between black and white, even though the numbers say it should be. That mismatch between what the math claims and what your eyes see is why OKLCH exists and why we use it as the default for the palette and shade/tint generators.

The four tools in this category cover the everyday color tasks you do while building a UI: pick a brand color and generate a coordinated palette, check whether your text passes WCAG, convert a value between HEX and OKLCH, and build a 50–950 shade scale for your design tokens.

When to use them

  • Building a brand color system from a single seed color — drop a hex value into the palette generator and pick a harmony.
  • Generating a Tailwind-style 50–950 shade scale from a base color, ready to paste into tailwind.config.js or as CSS custom properties.
  • Verifying WCAG contrast on a button before you ship — paste your foreground and background, see the AA/AAA badges instantly.
  • Converting a Figma color (HEX or HSL) into OKLCH so you can drop it into a modern stylesheet without losing precision.
  • Picking a complementary accent for a page section without guessing — let the harmony rules do it for you.

Common color tasks our tools handle

  • The palette generator takes a base color and produces a coordinated set using OKLCH harmony rules — complementary, analogous, triadic, tetradic, split-complementary, or monochromatic. Output toggles between OKLCH (default), HEX, and HSL.
  • The contrast checker calculates the WCAG 2.1 ratio between two colors and shows pass/fail badges for AA and AAA at both normal and large text sizes — your one-stop check before any text/background pairing ships.
  • The color converter is a quick reference: paste a value in any of HEX, RGB, HSL, or OKLCH and copy it back out in any of the other three.
  • The shade and tint generator walks lightness in OKLCH space to produce the 50, 100, 200 … 950 steps that modern design systems are built on. Output as CSS custom properties or a Tailwind config block.

Why OKLCH matters

HSL was designed for math, not human perception. Equal steps along its L channel don't look equally bright — a yellow at 50% lightness looks dramatically brighter than a blue at 50% lightness, even though the numbers are identical. That's why a 10-step HSL shade scale tends to look fine at the ends and muddy in the middle, especially for hues near yellow and cyan.

OKLCH was designed around human perception. Its L channel is perceptually linear, so a 0.1 step in lightness looks like the same visual jump no matter which hue you started from. That's the reason it's the default in the palette generator and the shade/tint generator — not because it's newer, but because it produces scales that look as even as the math claims.

What makes SnipKit's color tools different

SnipKit's color tools are built around four principles:

  • No sign-up, ever. Open the tool, pick your colors, copy the values.
  • OKLCH-first. The palette generator and shade/tint generator both compute in OKLCH — a perceptually uniform color space — so equal lightness steps look equally bright to the human eye, not just numerically equal. HEX and HSL output is still one click away if you need it for legacy targets.
  • Accessibility built in. The contrast checker calculates WCAG 2.1 ratios and tells you exactly which level (AA / AAA, normal / large text) your pairing passes — no separate site, no ad popup.
  • Your work persists. Build a palette, close the tab, come back next week and pick up where you left off — every tool saves its state to your browser's localStorage.

On the roadmap

  • Color blindness simulation in the contrast checker (protanopia, deuteranopia, tritanopia previews).
  • Export palettes directly as Tailwind config, CSS variables, or Figma styles.
  • P3 wide-gamut color support for displays that can show colors beyond sRGB.

Frequently asked questions

Are these tools free?

Yes. Every tool on SnipKit is free to use, with no accounts, no trials, and no paywall.

Do I need to create an account?

No. SnipKit has no sign-up flow at all. Open the site, use the tool, copy the code.

Will my browser store my work?

Yes. Each tool saves your current state to your browser's localStorage so you can come back later or refresh without losing progress. Nothing is sent to a server. Clearing your browser data removes the saved state.

Can I use the generated code commercially?

Yes. Anything you generate is yours — no license, no attribution required. Use it in client work, personal projects, or commercial products.

Why OKLCH instead of HEX or HSL?

OKLCH is a perceptually uniform color space — equal steps in lightness look equally bright to the human eye. HSL doesn't do that, which is why a HSL-walked shade scale tends to look fine at the ends and muddy in the middle. Our palette generator and shade/tint generator both compute in OKLCH for that reason. You can still toggle the output to HEX or HSL if your project needs them.

Which color formats do you support?

The color converter handles HEX, RGB, HSL, and OKLCH — convert in any direction with one-click copy on each format. The palette and shade/tint generators emit OKLCH by default, with HEX and HSL toggles for compatibility with older codebases or design tools that don't speak OKLCH yet.

How does the contrast checker decide pass/fail?

It calculates the WCAG 2.1 contrast ratio between your foreground and background colors and shows the exact ratio plus four badges: AA and AAA for normal text, AA and AAA for large text (≥18pt regular or ≥14pt bold). The thresholds are 4.5:1 (AA normal), 7:1 (AAA normal), 3:1 (AA large), and 4.5:1 (AAA large).