System Color Picker - The macOS color picker as an app with more features

Overview

System Color Picker

The macOS color picker as an app with more features




Download

Requires macOS 11 or later.

Features

  • Quickly copy, paste, and convert colors in Hex, HSL, RGB, LCH format
  • Show as a normal app or in the menu bar
  • Pick a color or toggle the window from anywhere with a global keyboard shortcut
  • Make the window stay on top of all other windows
  • Launch it at login

Keyboard shortcuts

You can use the following keyboard shortcuts in the app:

  • Pick color: Command p
  • Copy as Hex: Shift Command h
  • Copy as HSL: Shift Command s
  • Copy as RGB: Shift Command r
  • Copy as LCH: Shift Command l
  • Paste color: Shift Command v (In the format Hex, HSL, RGB, or LCH)

Plugins

The built-in color picker supports plugins:

Screenshots

FAQ

What is LCH color?

It's a more human-friendly color format.

Note that the LCH color is currently clamped to sRGB range.

The color changes if I copy and then paste it

That is because the default color space in the picker is Display P3, which is part of CSS Color 4, but the color space used for the legacy CSS color formats is sRGB (browsers are starting to handle color spaces but they are not all there yet).

How do I change the color space?

Right-click the color wheel. You probably want to select “sRGB”.

Note that the color strings will always be converted to sRGB color space.

Can you support SwiftUI.Color / UIColor / NSColor formats?

The best practice is to use Asset Catalog for colors instead of hard-coding the values in code. If you really want to hard-code colors, the Scala color picker plugin supports UIColor and NSColor.

Can I contribute localizations?

I don't have any immediate plans to localize the app.

Built with

  • Defaults - Swifty and modern UserDefaults
  • Regex - Swifty regular expressions
  • KeyboardShortcuts - Add user-customizable global keyboard shortcuts to your macOS app
  • LaunchAtLogin - Add “Launch at Login” functionality to your macOS app

Other apps

Comments
  • Quick paste

    Quick paste

    I think it would be useful to be able to quickly paste a color in either Hex, HSL, or RGB. You can already do this by selecting the correct text field first, but I think it would be nice if we could support this as long as the app is active.

    Open questions:

    • What should the keyboard shortcut be? Should we use Command+V for this? Or should it be Shift+Command+V?
    • Where and how should it be presented in the UI? (Button to paste)

    The implementation should be simple as we already have the initializers. We just try initializing the colors on after another.

    Feedback wanted

    opened by sindresorhus 10
  • Automatically copy to clipboard

    Automatically copy to clipboard

    It could be useful to automatically copy the picked value to the clipboard based on a pre-defined preference rather than have to copy using the keyboard shortcut. I can imagine this will differ depending on whether the user needs HEX, RGB, etc. but it would lead to a smoother workflow, especially when integrating with launchers like Raycast (example attached)

    https://user-images.githubusercontent.com/48359410/117535038-d6bfc700-afeb-11eb-883a-33bad5ddd7cc.mp4

    enhancement help wanted 
    opened by Clock-Drift 4
  • when pasting in a hex color, the palette changes but the text field does not

    when pasting in a hex color, the palette changes but the text field does not

    • macOS 12.1
    • SCP v1.9.0 (MAS)

    Repro

    • If you put ff4915 in your pasteboard, and enter the hex field and press ⌘cmd+V the color wheel & swatch will update but the field (usually) remains at its previous value
    • bonus: sometimes the field does update after pasting. This usually happens after fiddling with the controls a bit.

    here's a screen recording:

    https://user-images.githubusercontent.com/1992842/148231395-eaa8d661-c30a-41c0-9433-d73bcdee34c9.mp4

    opened by luckman212 3
  •  Quit shortcuts and menus are missing. The white dot disappears.

    Quit shortcuts and menus are missing. The white dot disappears.

    When I look at the dock, it is not clear whether the application is open or not on Dock icon. The white dot disappears.

    https://user-images.githubusercontent.com/36481442/137536436-156570ff-6aff-4a0e-b501-2bb679134f53.mov


    Also application does not appear in the quick switch interface. Command+Tab | Comman+Q.

    tutorials-9832-0-70764300-1594797311_thumb

    There is no Quit option when right clicked on the Dock icon.

    Ekran Resmi 2021-10-15 21 55 26
    opened by hazarek 3
  • 'Show colour sampler when opening window' does not work in menu bar mode unless clicked

    'Show colour sampler when opening window' does not work in menu bar mode unless clicked

    Opening the picker via a launcher shortcut (Raycast/Spotlight) fails when in menu bar mode

    https://user-images.githubusercontent.com/48359410/117534954-821c4c00-afeb-11eb-9795-7ab683b2b0b3.mp4

    opened by Clock-Drift 2
  • Add Support for Localization

    Add Support for Localization

    Although the app obviously isn't very text-heavy, I think it would be neat to allow contributors to translate Color Picker into other languages.

    The app already feels 95% like a native Mac app, and having the app name and menu options in my own language (not English) would make that 100%.

    Apple's instructions for app localization can be found here: https://developer.apple.com/documentation/xcode/localization

    opened by isametry 1
  • Add support for LCH color format

    Add support for LCH color format

    Fixes #5

    Build: Color Picker.app.zip

    Please help test 🙏


    Open questions:

    • Should LCH be clamped to sRGB? Currently, if you copy LCH, it will be clamped to sRGB. Same if you paste a LCH color that is outside the range of sRGB. How will browsers handle this?

    TODO:

    • [ ] I want to make it possible to hide/show the different color formats.
    opened by sindresorhus 1
  • LCH color support

    LCH color support

    I plan to add support for LCH color (not Lab since it's almost the same, just not as human-friendly). It's superior to HSL and RGB.

    There's no rush though. Doesn't seem like all browsers support it yet: https://chromestatus.com/feature/4592567062626304

    enhancement 
    opened by sindresorhus 1
  • Suggestion: Install via Homebrew

    Suggestion: Install via Homebrew

    Instead of having the app dependent of the Mac App Store, also have it available as a cask from Homebrew.

    Also having the compiled .dmg-file for the Releases-section right here on GitHub! 😄

    opened by timharek 1
  • Support for hiding the menubar icon

    Support for hiding the menubar icon

    I'll mainly use the app's color picker via the global shortcut, so I'd prefer to be able to hide the app's icon from the menubar to have a less cluttered menubar.

    opened by fabiospampinato 0
  • OKLCH color support

    OKLCH color support

    Can you add support for OKLCH colors? OKLCH has been added to CSS color 4 and is superior to LCH, particularly at perceptually uniform blending of colors without hue shifts.

    Browser support isn't here yet, so no rush, but I think OKLCH will be better than LCH when you get to implementing color sliders #20.

    opened by aaronkollasch 1
  • Improve text field input

    Improve text field input

    Hi @sindresorhus This PR is a first draft for issue #3 Validate text fields

    I first tried a border color for the hex text field but it interfered with blue border when the text field is focused. Instead I added a SF symbol image that switches depending if the field is valid.

    Capture d’écran 2022-08-17 à 14 32 19 Capture d’écran 2022-08-17 à 14 36 32

    The implemented colorChecker class uses ObservedObject and the onChange modifier to run on user input, it also trims unwanted characters.

    The code still needs to be implemented for hsl, rgb & lch text inputs. Also needs cleaning, optimizing & testing but I wanted an initial 👍 before going ahead.

    Regards

    PS : I have more experience with iOS app development, this is helping me get to grips with Mac app development 😄

    opened by W1W1-M 6
  • Option to programmatically start the color picker?

    Option to programmatically start the color picker?

    I'd like to build a Raycast shortcut to open the color picker, do you plan to add Apple Script support or maybe just a URL scheme that once called opens the picker?

    Thanks!

    opened by FezVrasta 1
  • Feature: Add Color-Names

    Feature: Add Color-Names

    Would love to get a color name for each picked color, I happen to maintain this list: https://github.com/meodai/color-names But there are plenty of others around: https://github.com/meodai/color-name-lists

    opened by meodai 2
  • Richer color picker experience

    Richer color picker experience

    I've just moved away from using ColorSnapper2, and I think this app should implement some of the extra features that ColorSnapper2 provides for its color picker, as they improve the user experience significantly.

    Features

    1. Being able to resize the loupe with the scroll wheel. This is pretty useful as the current size of the loupe feels very small to me, it feels a bit disorienting, as if I can't see enough of the surrounding to orientate myself easily, I'd like to make it bigger.
    2. Current color tooltip. I like this a lot because it allows the color picker to be used for more things, for example I can check if something is pure black or if two things are of the same color super quickly, currently doing the same with this app involves opening the window, which just breaks the workflow for me.
    3. Close-up mode. When pressing ctrl on ColorSnapper2 the loupe sort of zooms in into the screen, showing a bigger loupe, much bigger pixels, a pixels grid and importantly also the loupe moves more slowly. Those are pretty useful features IMO as picking a precise pixel currently with the app is not a smooth as it should be, it's just too easy to move the cursor accidentally to a neighbor pixel and I find that I physically get closer to the screen just to have a better view of the pixels.

    Demo

    https://user-images.githubusercontent.com/1812093/141295302-d8fcfd2c-ad11-4d8b-9d1d-ef9434d821f7.mov

    enhancement 
    opened by fabiospampinato 3
Releases(v1.12.0)
  • v1.12.0(Dec 1, 2022)

  • v1.11.0(Jun 30, 2022)

    • Added the ability to clear recently picked colors (when viewing them in the color picker window).
    • Added the ability to press the Option key to temporarily invert whether to use # when copying Hex colors.

    https://github.com/sindresorhus/System-Color-Picker/compare/v1.10.1...v1.11.0

    Source code(tar.gz)
    Source code(zip)
  • v1.10.1(Jun 9, 2022)

  • v1.10.0(May 30, 2022)

  • v1.9.6(Apr 10, 2022)

  • v1.9.5(Feb 17, 2022)

    • Fix a bug where the color picker window showed up on system startup when in menu bar mode

    https://github.com/sindresorhus/System-Color-Picker/compare/v1.9.4...v1.9.5

    Source code(tar.gz)
    Source code(zip)
  • v1.9.4(Jan 28, 2022)

  • v1.9.3(Jan 16, 2022)

  • v1.9.2(Jan 13, 2022)

    • Fixed an issue with the color not being copied if the color sampler was set to open when the color panel window opened

    https://github.com/sindresorhus/System-Color-Picker/compare/v1.9.1...v1.9.2

    Source code(tar.gz)
    Source code(zip)
  • v1.9.1(Jan 8, 2022)

  • v1.9.0(Nov 13, 2021)

    • Added a preference to hide the menu bar icon.
    • Added the ability to copy the current color in HSB format. (Click the "..." button)

    https://github.com/sindresorhus/System-Color-Picker/compare/v1.8.0...v1.9.0

    Source code(tar.gz)
    Source code(zip)
  • v1.8.0(Oct 23, 2021)

    • Improved compatibility with macOS Monterey.
    • Added support for Shortcuts on macOS Monterey.

    https://github.com/sindresorhus/System-Color-Picker/compare/v1.7.1...v1.8.0

    Source code(tar.gz)
    Source code(zip)
  • v1.7.1(Oct 2, 2021)

    • Fix color history color format not updating when changing preferences

    https://github.com/sindresorhus/System-Color-Picker/compare/v1.7.0...v1.7.1

    Source code(tar.gz)
    Source code(zip)
  • v1.7.0(Oct 1, 2021)

    • The six most recently picked colors are now shown in the window and menu bar item menu.
    • Added a preference to change what happens when clicking the menu bar icon.

    https://github.com/sindresorhus/System-Color-Picker/compare/v1.6.2...v1.7.0

    Source code(tar.gz)
    Source code(zip)
  • v1.6.2(Sep 18, 2021)

  • v1.6.1(Sep 10, 2021)

    • Disable the "Launch At Login" preference when menu bar mode is not enabled https://github.com/sindresorhus/System-Color-Picker/commit/6367b03e437ba729729c1ace7b5ba409b38dcf73

    https://github.com/sindresorhus/System-Color-Picker/compare/v1.6.0...v1.6.1

    Source code(tar.gz)
    Source code(zip)
  • v1.6.0(Jul 22, 2021)

    • Add preference to make text in text fields larger https://github.com/sindresorhus/System-Color-Picker/commit/1b0ce6c261712dd417c0d368fe536b1dd389b549

    https://github.com/sindresorhus/System-Color-Picker/compare/v1.5.0...v1.6.0

    Source code(tar.gz)
    Source code(zip)
  • v1.5.0(Jun 20, 2021)

    • Add preference to prefix Hex color with “#” https://github.com/sindresorhus/System-Color-Picker/commit/6416f6523434746a4082732b5d618601db993895

    https://github.com/sindresorhus/System-Color-Picker/compare/v1.4.1...v1.5.0

    Source code(tar.gz)
    Source code(zip)
  • v1.4.1(Jun 9, 2021)

  • v1.4.0(May 29, 2021)

    • Added support for the LCH color format.
    • Added the ability to choose which color formats to show in the color picker window.
    • Added the ability to set a global keyboard shortcut for picking a color.
    • The "Copy to HSL" keyboard shortcut changed to Shift+Command+s.

    https://github.com/sindresorhus/System-Color-Picker/compare/v1.3.2...v1.4.0

    Source code(tar.gz)
    Source code(zip)
  • v1.3.2(May 29, 2021)

  • v1.3.0(May 15, 2021)

  • v1.2.0(May 6, 2021)

    • Added the ability to quickly paste a color in any of the supported formats. Just press Shift+Command+v while the app is focused to paste. You can also find it in the “Color” menu.
    Source code(tar.gz)
    Source code(zip)
Owner
Sindre Sorhus
Full-Time Open-Sourcerer. Wants more empathy & kindness in open source. Focuses on Swift & JavaScript. Makes macOS apps, CLI tools, npm packages. Likes unicorns
Sindre Sorhus
ColorWheel Test - An attempt at creating a Color Wheel to be utilized for color picking in SwiftUI utlizing various tutuorials on youtube

This code focuses on creating a Color Wheel in which a user will be able to select a desired color to then be implemented in another project that will display that color in an LED connected to an arduino

Gerardo Cerpa 0 Jan 15, 2022
ChromaColorPicker - An intuitive HSB color picker built in Swift

An intuitive HSB color picker built in Swift. Supports multiple selection handles and is customizable to your needs.

Jonathan Cardasis 536 Dec 29, 2022
SheetyColors is an action sheet styled color picker for iOS

?? Based on UIAlertController: The SheetyColors API is based on UIKit's UIAlertController. Simply add buttons to it as you would for any other Action Sheet by defining UIAlertAction instances. Therefore, it nicely integrates with the look & feel of all other native system dialogs. However, you can also chose to use the color picker it self without an action sheet.

Christoph Wendt 102 Nov 10, 2022
An open-source colour picker app for macOS

An open-source colour picker app for macOS

Charlie Gleason 1.1k Dec 27, 2022
Overrides macOS external display EDIDs to force RGB color

edidiotic edidiotic creates EDID overrides for external displays on macOS that set the display type to RGB color and removes all extension blocks. Thi

William Alexander 1 Dec 21, 2021
HEX color handling as an extension for UIColor. Written in Swift.

SwiftHEXColors HEX color handling as an extension for UIColor. Written in Swift.

Thi Doãn 692 Dec 22, 2022
Convenience methods for creating color using RGBA hex string.

UIColor+Hex, now Swift. Convenience method for creating autoreleased color using RGBA hex string.

R0CKSTAR 1.2k Dec 23, 2022
UIGradient - A simple and powerful library for using gradient layer, image, color

UIGradient is now available on CocoaPods. Simply add the following to your project Podfile, and you'll be good to go.

Đinh Quang Hiếu 247 Dec 1, 2022
A tool to calculate the color ratio of UIImage in iOS.

UIImageColorRatio A tool to calculate the color ratio of UIImage in iOS. How to use UIImageColorRatio Get the color ratio of UIImage. let image = ...

Yanni Wang 王氩 34 Jan 1, 2023
An attractive color generator for Swift. Ported from randomColor.js.

Random Color Swift Inspired by David Merfield's randomColor.js. It is a ported version to Swift. You can use the library to generate attractive random

Wei Wang 624 Jan 3, 2023
Flat UI color palette helpers written in Swift.

FlatUIColors (swift) install Make sure you have the latest version of CocoaPods (gem install cocoapods) that has Swift support. At the time of this wr

Bryn Bellomy 172 Dec 6, 2022
A UIColor extension with CSS3 Color names.

CSS3ColorsSwift Overview CSS3ColorsSwift provides a UIColor extension with Web Color names. Demo Run the demo project in the Demo directory without ca

WorldDownTown 67 Aug 6, 2022
Google Material Color Palette in Swift

Google Material Color in Swift Defined Google Material Color value ready to use in Swift refer to Google Material Design in Style/Color section ###How

Todsaporn Banjerdkit 48 Oct 30, 2019
A beautiful set of predefined colors and a set of color methods to make your iOS/OSX development life easier.

Installation Drag the included Colours.h and Colours.m files into your project. They are located in the top-level directory. You can see a demo of how

Ben Gordon 3.1k Dec 28, 2022
Generate color based on the given string.

PFColorHash Swift 4.0 SUPPORT! Generate color based on the given string. Thanks to color-hash. Usage Basic let colorHash = PFColorHash() // in HSL, H

null 26 Feb 23, 2022
A Lightweight But Powerful Color Kit (Swift)

BCColor A lightweight but powerful color kit (Swift) Features Pick Colors From Image Generate Monochrome Image Support Hex Color Style Lighten / Darke

Xiaobo Zhang 418 Nov 25, 2022
A simple UIColor category to get color with hex code.

TFTColor A simple UIColor library to get UIColor object from RGB hex string/value, CMYK hex string/value or CMYK base component values. You can also r

Burhanuddin Sunelwala 18 Jun 21, 2022
Aesthetic color-scheme generation written in Swift

Lorikeet Lightweight framework for generating visually aesthetic color-schemes in Swift Requirements UIKit Features What can Lorikeet do for you Calcu

Þorvaldur Rúnarsson 31 Jun 21, 2022
HEX color handling as an extension for UIColor

HEX color handling as an extension for UIColor. Written in Swift

Thi Doãn 692 Dec 22, 2022