This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Picking and Editing Colors
Everything on this page sets the current color: picking it from the screen, the channel rows in 18 color models, the hex entry, and the alpha. Everything else in Gamut follows the current color.
1. Picking from the screen
Press Pick Color, or Ctrl+Alt+Z while the main window has the keyboard. The button stays pressed while you pick, and the magnifier now follows the pointer anywhere on the screen, with a crosshair on the pixel under it.
| While picking | What it does |
|---|---|
| Left click | Picks the pixel under the pointer. |
Enter |
Picks the pixel under the pointer. |
| Arrow keys | Move the pointer by one pixel, to reach an exact pixel. |
Mouse wheel, + (or =) and - |
Magnify more or less, from 10 to 300 times in steps of 10. It starts at 20 times. |
Right click, Escape |
Cancels the pick; the color stays as it was. |
A pick sets the red, green and blue of the current color; its alpha stays as it was.
- Hide on pick hides the main window, the Design window and the Measurement Settings dialog while you pick, so that they cannot cover what you want to sample. The magnifier then floats beside the pointer and follows it, and everything comes back after the pick.
- Live hex shows the hex value of the pixel under the crosshair in a corner of the magnifier. It is on at first.
After a pick the magnifier keeps showing the picked pixel and its neighbors. It keeps a wider area than it shows, so that its picture stays sharp when you change the magnification later. That picture and the magnification are kept when Gamut closes, and come back at the next start.
2. The color models
The color model list, to the right of the hex entry, chooses the model that the three channel rows work in. It does not change the color: it shows the same color in another model's terms. The same choice sets the model of the harmony wheel, so that a harmony is built in the space you are editing in.
| Model | Channels and their ranges | Spin box step |
|---|---|---|
| RGB | R, G, B: 0 to 255 | 1 |
| Linear sRGB | R, G, B: 0 to 1 (light, not encoded) | 0.01 |
| RYB v1, RYB v2 | H 0 to 359.99°, S and L 0 to 100: the painter's color wheel (two versions) | 1 |
| HSL | H 0 to 359.99°, S and L 0 to 100 | 1 |
| HSV | H 0 to 359.99°, S and V 0 to 100 | 1 |
| Display P3, Adobe RGB, Rec.2020 | R, G, B: 0 to 255 | 1 |
| ACEScg, ProPhoto RGB | R, G, B: 0 to 1. ACEScg is taken to the D65 white of the other models, so white is 1, 1, 1 | 0.01 |
| L*a*b* | L* 0 to 100, a* and b* −128 to 127 | 0.1 for L*, 0.05 for a* and b* |
| LCh(ab) | L* 0 to 100, C* 0 to 134, h° 0 to 359.99 | 0.1, 0.05, 1 |
| OKLab | L 0 to 1, a and b −0.5 to 0.5 | 0.01, 0.005 |
| OKLCh | L 0 to 1, C 0 to 0.322, h° 0 to 359.99 | 0.01, 0.005, 1 |
| LCh(uv) | L* 0 to 100, C* 0 to 179, h° 0 to 359.99 | 0.1, 0.05, 1 |
| JzAzBz | Jz 0 to 1, Az and Bz −0.34 to 0.34 | 0.01, 0.005 |
| CAM16-UCS | J’ 0 to 1, M’ 0 to 0.92, h° 0 to 359.99 | 0.01, 0.01, 1 |
The labels of the rows change with the model. Each row has a spin box and a slider. The spin box's + and − buttons, the mouse wheel over it and the Up and Down keys change the value by its step (holding a button repeats), and Page Up and Page Down by ten steps; a key steps from the value typed in the box, even before you press Enter. A typed value is used when you press Enter or click elsewhere. The spin boxes show up to two decimals for degrees and percents, four for most other channels and five for JzAzBz.
Each slider's track shows the colors it would give at every position, with the other two channels as they are, so you can see where you are going before you move. The wide-gamut and perceptual models can describe colors that sRGB cannot show; such a color is shown, stored and used as the nearest sRGB color, because the current color is always kept as sRGB.
The perceptual models (L*a*b* to CAM16-UCS) also show the viewing conditions list on the Harmony tab; see Harmony.
3. Typing a hex value
The hex entry shows the current color in capital letters. Click into it, type, and press Enter (or click elsewhere) to use the value. It takes a hex value, or a color written as in CSS:
| Typed | Means |
|---|---|
#3A7BD5 or 3A7BD5 |
Red, green and blue. The alpha stays as it was. |
#38F or 38F |
The short form: #3388FF. |
#3A7BD580 or 3A7BD580 |
Red, green, blue and alpha (here 0x80, about half transparent), whether or not the alpha digits are shown. |
rgb(58, 123, 213) |
Red, green and blue, each 0 to 255 or a percentage. The alpha stays as it was. |
rgba(58, 123, 213, 0.5) |
The same with an alpha, 0 to 1 or a percentage. |
hsl(215, 65%, 53%), hsla(215, 65%, 53%, 50%) |
Hue in degrees, saturation and lightness in percent, and for hsla() an alpha. |
In rgb() and hsl() the numbers may be separated by commas or by spaces, and the alpha by a slash as well, as in rgb(58 123 213 / 50%). The values can be typed or pasted.
A value Gamut cannot read is replaced by the current color again. After a value is used, the entry shows it in its full form. A right-click opens a menu with Cut, Copy, Paste, Select All, Clear, Undo and Redo, and the usual keys (Ctrl+C, Ctrl+V ...) work.
4. Alpha
The A row sets the current color's opacity, 0 to 255, on a track drawn over a checkerboard. In the linear models (Linear sRGB, ACEScg and ProPhoto RGB) its spin box shows the same opacity as 0 to 1 instead. The swatch, the harmony swatches and the wheel are drawn with it, and it travels with the palette to the Design window.
The checkbox to the left of the hex entry shows the alpha in the hex value (#RRGGBBAA, the first setting) or leaves it out (#RRGGBB). Leaving it out does not change the alpha.
The alpha is also part of the Values tab's code literals that have one; see Theming and Values.
5. Other ways to set the color
- Dragging a marker on the harmony wheel, or in its triangle (Harmony).
- Clicking the gradient bar, which adds a stop and makes its color the current color (Gradients).
- Clicking a hex value or a name on the Theming tab (Theming and Values).
- Dropping a swatch from the Design window's Color Map onto the main window, or a swatch on the Color Map in Set Base mode (The Design Window).
6. Known limitations
- Picking reads the screen as the X server holds it, with no color management: the value is what your display was sent, not a measured color.