Updated
How to Convert a Hex Color to OKLCH or RGB on Mac
By Sindre Sorhus, who makes the System Color Picker app
With System Color Picker
- Copy the Hex color, like from your CSS or a design app.
- Open System Color Picker, and press ShiftCommandV. Or type the color in the first field (Hex).
- Click the copy button next to the format that you want, like “OKLCH”. Or press its shortcut, like ShiftCommandO for OKLCH.
You can also paste a color in HSL, RGB, OKLCH, LCH, or CMYK, and the fields show it in the other formats. The app copies OKLCH as a CSS color, like oklch(…), and RGB as rgb(255 128 0). For the older syntax with commas, like rgb(255, 128, 0), turn on “Use legacy syntax for HSL and RGB” in the “Color” settings.
Tips
- To show more formats in the window, like LCH or CMYK, choose them in “Shown color formats” in the “Color” settings. All formats are also in the “Color” menu.
- The app is also a color picker: press CommandP, and click a color anywhere on the screen. How to pick a color from the screen.
Get System Color Picker
The familiar color picker supercharged
$4, one-time purchase
- Requires
- macOS 26.4 or later
- Privacy
- No personal data collected
- Family Sharing
- Yes
- Updated
- November 2026
- US App Store rating
- 4.9/5 (2512 ratings)
More about System Color Picker
Without an app
A converter on the web, like oklch.com, shows a Hex color as OKLCH and RGB. Paste the color, and copy the value that you need.
For Hex to RGB, each pair of characters is a number from 0 to 255 in base 16: #FF8000 is FF (255), 80 (128), and 00 (0), so rgb(255 128 0). OKLCH needs a long calculation, so use a converter or an app for it.
