Every CSS color format in one place
Pick a color and Color Picker Lab gives you the value in every format CSS understands — #3B82F6, rgb(59, 130, 246), hsl(217, 91%, 60%) and oklch(0.62 0.19 260) — each one click to copy. Need transparency? Use 8-digit HEX
or the rgba()/hsla() forms.
Using colors in CSS
Drop a copied value straight into a rule, or store it as a custom property — --brand: #3B82F6; — and reuse it with var(--brand). For a full design system, export the whole palette as CSS
variables, a Tailwind theme, or JSON from the picker’s export menu.
Frequently asked questions
- What color formats does CSS support?
- CSS accepts HEX (and 8-digit HEX with alpha), rgb()/rgba(), hsl()/hsla(), hwb(), oklch(), lab() and named colors. Color Picker Lab shows HEX, RGB, HSL, HSV and OKLCH for every color.
- How do I add transparency in CSS?
- Use an 8-digit HEX code (#RRGGBBAA), or rgba()/hsla() with an alpha value. Drag the alpha slider and copy any transparent format.
- Which CSS color format should I use?
- HEX or RGB for general use, and OKLCH when you need perceptually even shade scales and accessible palettes — it is supported in every major browser.