Color converter
ClientPaste a color in HEX, rgb(), rgba(), hsl(), hsla(), or a CSS keyword—or use the picker. Copy classic and OKLCH forms, or use harmonic palette hints below.
Convert
?
#RRGGBB, rgb(), rgba(), hsl(), hsla(), or a named color (e.g. steelblue). Use the swatch to adjust RGB; all values update together.Outputs
- HEX
#3B82F6 - RGB
rgb(59, 130, 246) - RGBA
rgba(59, 130, 246, 1) - HSL
hsl(217.2, 91.2%, 59.8%) - HSLA
hsl(217.2, 91.2%, 59.8%) - OKLab
oklab(0.6231 -0.0332 -0.1851) - OKLCH
oklch(0.6231 0.188 259.8)
Harmonic palettes
?
Complementary
#F6AF3B
Split complementary
#F6513B#E0F63B
Triadic
#F63B82#82F63B
Analogous
#3BE0F6#513BF6
Common use cases
- Copy HEX, rgb(), hsl(), or OKLCH strings into design tokens, CSS, or Figma-friendly notes without installing an app.
- Translate a brand color into multiple syntaxes for legacy code, modern OKLCH gradients, or documentation.
- Use harmonic hints to pick related accents for buttons, borders, and focus rings that stay in the same family.
Common mistakes to avoid
Mixing up HEX with and without #
Some tools require a leading #; others accept bare digits. If a color fails to parse, check the exact format the field expects.
Expecting identical appearance on every display
Browsers map CSS colors to the screen profile they use. Perceptual spaces like OKLCH help consistency, but two monitors can still look different.
FAQ
Is conversion done on your servers?
No. Parsing and conversion run in your browser; the page does not send your colors to us.
What are OKLab and OKLCH for?
They are perceptual color spaces that often make gradients and lightness steps look more even than classic HSL. Use whichever syntax your project and browsers need.
Where can I check contrast for accessibility?
Use the WCAG contrast checker in the Color hub when you need pass/fail for text on a background—not every pair of colors needs a formal check.
More tools
Related utilities you can open in another tab—mostly client-side.
Web-safe colors
Client216 swatches from the 6×6×6 cube; copy HEX, RGB, or RGBA in one click.
WCAG contrast checker
ClientForeground vs background: contrast ratio and WCAG AA/AAA for normal and large text.
Image tools
ClientConvert, enhance (tone & sharpen), resize, read EXIF & export clean—WebP, JPEG, PNG in browser.
QR code generator
ClientWi‑Fi & vCard builders, templates—custom colors, optional logo, PNG/SVG—local only.