Color Picker & Converter
Pick and convert HEX, RGB, HSL, HSV, CMYK and OKLCH.
Free online color picker & converter by AIML Digital. It runs 100% in your browser: no sign-up, no limits, and nothing you enter is sent to a server.
Formulas
HSL: L = (max + min) ÷ 2; S = Δ ÷ (1 − |2L − 1|)CMYK: K = 1 − max(R′,G′,B′); C = (1 − R′ − K) ÷ (1 − K)OKLCH: linear sRGB → LMS (cube-root) → OKLab → L, C = √(a²+b²), h = atan2(b, a)Tint = mix(color, white, t); Shade = mix(color, black, t)
How it works
- Any CSS colour is parsed by the browser, then converted mathematically to each model.
Standard / source: OKLab by Björn Ottosson (2020).
Frequently asked questions
Is the Color Picker & Converter free?
Yes. The Color Picker & Converter by AIML Digital is completely free, with no sign-up, no limits and no watermark.
Is my data sent anywhere?
No. The Color Picker & Converter runs entirely in your web browser using JavaScript. What you type stays on your device.
What formula does the Color Picker & Converter use?
HSL: L = (max + min) ÷ 2; S = Δ ÷ (1 − |2L − 1|); CMYK: K = 1 − max(R′,G′,B′); C = (1 − R′ − K) ÷ (1 − K); OKLCH: linear sRGB → LMS (cube-root) → OKLab → L, C = √(a²+b²), h = atan2(b, a); Tint = mix(color, white, t); Shade = mix(color, black, t).
How does the Color Picker & Converter work?
Any CSS colour is parsed by the browser, then converted mathematically to each model.
Does the Color Picker & Converter work on mobile?
Yes. It works in any modern browser on phone, tablet or desktop, and keeps working offline once loaded (except tools that load a helper library the first time).
More Design tools
- Gradient Generator — Build linear, radial and conic CSS gradients visually.
- Palette Generator — Harmonious color palettes from one base color.
- Box Shadow Generator — Layered CSS box-shadows with a live preview.
- Border Radius Generator — Per-corner border-radius CSS, including blob shapes.
- Contrast Checker — WCAG 2 contrast ratio with AA/AAA pass-fail and fixes.
- Type Scale Generator — Modular typography scale with CSS variables and preview.
- PX ⇄ REM Converter — Convert pixels to rem/em and back, with a reference table.
- Glassmorphism Generator — Frosted-glass CSS cards with blur, tint and border.