Help

Pika picks colours from anywhere on your screen and checks how readable they are together. Here’s how it works.

Basics

Colour contrast is the difference in lightness between text and whatever’s behind it. With too little, words blur into their background. That’s a real problem for people with low vision or colour blindness, and it catches everyone else too, like reading a phone in the sun or a laptop turned down low.

Foreground and background
The foreground is text or an icon; the background is the surface behind it. Press X to swap them.
Why check contrast
Low-contrast text is hard to read, especially with low vision, colour blindness or glare.
WCAG and APCA
WCAG 2 gives a ratio (AA needs 4.5:1 for text). APCA gives an Lc value that accounts for size and weight, but isn’t a standard yet.
Ways to pick a colour
Basic uses the macOS sampler. Pro adds a live loupe and needs Screen Recording. ⌘S opens the macOS colour panel.
Editing values
Click a value to type, drag or two-finger scroll to scrub, and press ↑ or ↓ to step. ⌘Z undoes.
Colour spaces
sRGB matches CSS, Figma and most design tools, and is the default. Display P3 covers the more vivid colours of recent Macs. Contrast always uses sRGB.
Learn about WCAG contrastw3.org/…/contrast-minimum
Learn about APCAgit.apcacontrast.com/…

Keyboard Shortcuts

The View menu in the toolbar shows or hides Contrast, Palettes and Text Preview, and its keys (C, H and P) work while it’s open. Most shortcuts need Pika in front. Show/hide Pika and Pick pair (⌥⌘D) work from any app; set them in Settings → Global Shortcut.

Pick

Pick foreground colour⌘D
Pick background colour⇧⌘D
Pick foreground and background⌥⌘D

Copy and Paste

Copy foreground colour⌘C
Copy background colour⇧⌘C
Paste foreground colour⌘V
Paste background colour⇧⌘V

System Picker

Open system colour picker (foreground)⌘S
Open system colour picker (background)⇧⌘S

Change Format

Hex⌘1
RGB⌘2
HSB⌘3
HSL⌘4
LAB⌘5
OpenGL⌘6
OKLCH⌘7
Display P3⌘8

Actions

Swap coloursX
Toggle palettesH
Toggle contrastC
Toggle text previewP
Undo⌘Z
Redo⇧⌘Z
Settings⌘,
Quit Pika⌘Q

URL Triggers

Automate Pika from other apps using the pika:// URL scheme. You can also append a format to pick or copy actions, e.g. pika://pick/foreground/hex.

Pick

Pick foreground colourpika://pick/foreground
Pick background colourpika://pick/background
Pick foreground and backgroundpika://pick/contrast
Pick foreground in a specific formatpika://pick/foreground/<format>
Pick background in a specific formatpika://pick/background/<format>

System Picker

Open system colour picker (foreground)pika://system/foreground
Open system colour picker (background)pika://system/background

Copy

Copy foreground colourpika://copy/foreground
Copy background colourpika://copy/background
Copy foreground in a specific formatpika://copy/foreground/<format>
Copy background in a specific formatpika://copy/background/<format>
Copy all colours as textpika://copy/text
Copy all colours as JSONpika://copy/json

Change Format

Set format to Hexpika://format/hex
Set format to RGBpika://format/rgb
Set format to HSBpika://format/hsb
Set format to HSLpika://format/hsl
Set format to LABpika://format/lab
Set format to OpenGLpika://format/opengl
Set format to OKLCHpika://format/oklch
Set format to Display P3pika://format/p3

Actions

Swap foreground and backgroundpika://swap
Undopika://undo
Redopika://redo

Compliance

Show compliancepika://compliance/show
Hide compliancepika://compliance/hide
Toggle compliancepika://compliance/toggle

Preview

Show colour previewpika://preview/show
Hide colour previewpika://preview/hide
Toggle colour previewpika://preview/toggle

Set Colour

Set foreground colourpika://set/foreground/<hex>
Set background colourpika://set/background/<hex>

History

Show the history drawerpika://history/show
Hide the history drawerpika://history/hide
Toggle the history drawerpika://history/toggle

Window

Show Pika (the window, or the popover in popover mode)pika://window/show
Open the About windowpika://window/about
Open the Help windowpika://window/help
Open the Settings windowpika://window/settings
Open the Splash windowpika://window/splash
Open the Check Color windowpika://window/check
Resize windowpika://window/resize/<w>/<h>

Appearance

Force light appearancepika://appearance/light
Force dark appearancepika://appearance/dark
Restore system appearancepika://appearance/system

Colour Formats

FormatExampleShortcut
Hex#8F0FD0⌘1
RGB143, 15, 208⌘2
HSB277°, 93%, 82%⌘3
HSL277°, 86%, 44%⌘4
LAB36, 62, −69⌘5
OpenGL0.56, 0.06, 0.82⌘6
OKLCH0.45, 0.24, 299°⌘7
Display P30.51, 0.12, 0.79⌘8

Colour Spaces

Hex, RGB, HSB, HSL and OpenGL values depend on the colour space they’re read in: the same pixel is #ff0000 in sRGB and around #ea3323 in a P3 display’s own profile. Lab and OKLCH describe a colour absolutely, so they read the same in any space. Choose the space from the menu beside the format in the toolbar, or in Settings.

sRGBThe default. Hex values match CSS, Figma and most design tools.
Display P3For Display P3 design files and app assets. Browsers read a plain hex as sRGB, so copy in the Display P3 format, color(display-p3 …), for CSS.
Match displayThe raw values your display shows, in the profile of the display you pick on. Hex values won’t match the web.
OthersAdobe RGB and the other spaces macOS offers, for print and video work.

Colours don’t match?

If a picked value doesn’t match the one in your design file or stylesheet, it’s usually one of these.

A different colour spacePika is reading in a different space from the source. Choose Check Color from the colour space menu in the toolbar, or Help → Colors Don’t Match?, then pick the colour and enter the value you expected in any format. Pika shows which space reads it back and offers to switch to it.
The source isn’t colour managedSome apps draw their values straight to the display, and some convert through a profile of their own. Check the app’s colour settings, such as Figma’s file colour profile or Chrome’s chrome://flags/#force-color-profile.
RoundingA colour is rounded to 8 bits on its way to the display, so a value read back can land a step away. The Pro picker reads the screen at higher precision to keep this to a minimum.

Open Source

Pika is free and open source, built and maintained on GitHub. Contributions, bug reports, and feature requests are always welcome.

View source and contributegithub.com/superhighfives/pika ↗
Report feedback or issuesgithub.com/…/issues ↗
Support on the Mac App Storeapps.apple.com/…/pika ↗
Sponsor my work on GitHubgithub.com/sponsors/… ↗