Why it matters
Hard-coding hex in Swift needs conversion to 0–1 components, and asset catalogs are the better way to support dark mode.
Copy the code, or save the JSON as Contents.json in a .colorset folder.
How to use it
- Type or paste your input; the example shows the format.
- Press Convert. Results also update as you type.
- Read the summary line, then the table, notes or output below it.
- Copy or download what you need. Nothing leaves this page.
FAQ
Asset catalog or code?
Asset catalogs handle dark mode and high contrast automatically; prefer them.
How is the dark colour chosen?
A lighter version is suggested; change it in Xcode if needed.
Is my input uploaded?
No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.
Can I rely on the result?
It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.