Convert colors between modern perceptual spaces (OKLCH, Display P3, OKLab) and standard formats (HEX, RGB, HSL, HWB). Inspect live wide-gamut coverage, verify WCAG 2.1 AA/AAA contrast ratios against black & white, generate 10-step Tailwind tonal ramps, and copy production-ready CSS Color 4 and Tailwind v4 tokens.
How It Works
- Pick a color using the visual picker, type a HEX string, or adjust individual RGB channel sliders.
- Check the contrast badge on the swatch to verify compliance with WCAG AA/AAA guidelines.
- Review the generated 50-950 shade ramp and click any shade to load its exact coordinates.
- Click the copy button next to OKLCH, Display P3, or Tailwind v4 token to copy it directly.
Frequently Asked Questions
Why is OKLCH considered superior to HSL and RGB for modern web development?
OKLCH is a perceptually uniform color space. Unlike HSL where pure blue and pure yellow have vastly different perceived brightness at 50% lightness, OKLCH ensures that lightness values remain visually consistent across every hue, making UI theming and accessible contrast calculations mathematically reliable.
What is Display P3 and which devices support it?
Display P3 is a wide-gamut color space that displays 25% more colors than sRGB, particularly vivid greens and oranges. It is supported by all modern Apple devices (MacBook, iPhone, iPad) and modern Android OLED displays using CSS color(display-p3 r g b).
How does the WCAG contrast overlay work?
Our studio automatically computes the relative luminance of your color and checks its contrast ratio against both pure white (#ffffff) and pure black (#000000), showing whether it passes WCAG 2.1 AA (4.5:1) or AAA (7:1) requirements for readable text.
Can I copy these directly as Tailwind CSS v4 colors?
Yes! Tailwind CSS v4 defaults to OKLCH. You can copy the arbitrary utility class (bg-[oklch(...)]) or copy the @theme variable definition directly into your stylesheets.
Air-Gapped Client-Side Processing
FrontendYogi processes all code, text, documents, and media entirely inside your browser memory. No data is logged, uploaded, or transmitted to any remote servers.