AZ Tools

Color Format Converter

Color

Pick a color with the native color picker or paste a HEX value, and instantly see it in every common CSS format — HEX, modern space-separated RGB, legacy comma RGB, HSL, HSV, OKLCH (the perceptually-uniform color space modern CSS prefers), and a ready-to-paste CSS custom property. Each value has its own copy button.

Preview
  • HEX#3B82F6
  • RGBrgb(59 130 246)
  • RGB (legacy)rgb(59, 130, 246)
  • HSLhsl(217 91% 60%)
  • HSVhsv(217, 76%, 96%)
  • OKLCHoklch(62.3% 0.188 259.8)
  • CSS var--color: #3B82F6;

How to use

  1. Use the color picker or paste a HEX value (3 or 6 digits, # optional).
  2. Every format updates instantly.
  3. Copy the format you need with the button on the right of each row.

Frequently asked questions

What is OKLCH?
OKLCH is a perceptually-uniform color space — equal numeric distances feel like equal visual distances. Modern CSS supports it natively and design tools like Figma 2024+ are adopting it for smoother gradients and consistent contrast.
Why two RGB rows?
Modern CSS uses space-separated 'rgb(59 130 246)'. Legacy CSS and older browsers expect comma-separated 'rgb(59, 130, 246)'. Both produce the same color.
What about alpha (RGBA / HSLA)?
This tool focuses on opaque colors. For transparency, append '/ 0.5' inside the modern syntax (e.g. 'rgb(59 130 246 / 0.5)') or use the legacy 'rgba(…, 0.5)' form.
Is HSV the same as HSB?
Yes — HSV (Value) and HSB (Brightness) are two names for the exact same color model. CSS doesn't accept hsv() directly; use HSL for stylesheets.

Related tools