Color picker

Skala’s color picker includes some unique and useful features. It opens in a popover when you click a color well, like the color of a fill in the material properties tab.

From top to bottom, the color picker contains a saturation and brightness area, hue and opacity sliders, the color space and color format popup menus, and a field that shows the color as text. Next to the text field are buttons for choosing a random color and picking a color from the screen.

High precision sliders #

When dragging the hue and opacity sliders, a high precision area opens up. It’s possible to move the mouse upwards, then left and right for finer adjustments. While a slider is being dragged, its value is shown over the bottom of the saturation and brightness area, because a long color string can make the values hard to spot.

Hold ⇧ while dragging a slider to snap to whole steps — tenths on the normal slider, and hundredths in the high precision area.

Color space #

The color space popup menu contains sRGB, sRGB Extended, and Display P3. Changing the color space of a color converts it into the destination color space. This means the values are likely to change, and clipping may occur. The conversion maps to the closest possible color in the destination color space.

sRGB Extended uses sRGB’s primaries, but allows values outside of the usual 0 to 1 range, so it can describe colors outside of sRGB’s gamut.

To remove confusion, colors in the Display P3 color space are always prefixed with “p3”, or contain something else in their string to identify they’re in Display P3.

The color space used for new colors can be set in the Colors tab of Skala’s settings, via Skala › Preferences.

Further reading: Color management and settings

Color format #

The color format popup menu decides how the color is written in the text field. It’s best to pick the format that matches the code you’re writing, so you can copy and paste values directly.

  • Float RGBA and Float HSVA.
  • CSS Hex RGB, CSS color(), CSS rgb(), CSS hsl(), CSS oklch(), and CSS oklab().
  • Hex RGB, Hex ARGB, and Hex RGBA.
  • Swift NSColor RGBA, Swift UIColor RGBA, and SwiftUI Color RGBA.
  • Android Compose Color.

Each color space has a list of possible color formats, and formats that can’t describe the current color space are disabled. For example, CSS rgb() and CSS hsl() are only available for sRGB, and CSS oklch() and CSS oklab() are only available for sRGB Extended and Display P3.

Color constants, guide colors, and gradient point colors remember their format, so a color constant you’ve set up as CSS Hex RGB will still be CSS Hex RGB the next time you open the picker. Elsewhere, the picker opens with the last format you chose. In situations where a color format and intent is ambiguous, the RGB variant will take priority.

Alternate input formats #

The color value input field accepts many format variations. If what you type or paste doesn’t match the current color format, Skala tries the other formats, and switches the color format popup menu to the one that matched. Including “p3” anywhere in the string switches the color to Display P3.

  • CSS Hex RGB can omit the initial # (ffffff etc).
  • CSS Hex RGB can be 4-bit RGB values (#F00 for bright red etc).
  • CSS Hex RGB can be a 4-bit grey value (#F for white, #7 for grey etc).
  • Float RGBA can be comma or space separated (1, 1, 1, 1 or p3: 1 1 1 1 etc).

If the text can’t be understood in any format, the field shows an “Invalid color string” message, and the color stays as it was.

Random colors #

The Randomize Color button picks a random color in the current color space. The style of random colors can be chosen in the Colors tab of Skala’s settings, with options for pastels, primaries, monochrome, metals, cool, and warm colors.

Picking colors from the screen #

The Pick Color from Screen button next to the text field picks a color from anywhere on screen. The color is sampled in its original color space, so picking a wide gamut color won’t clip it to sRGB.

Further reading: Eyedropper

Color constants #

When a color can use a constant, a popup menu at the top of the picker switches between Unique Color and Color Constant. Choose Color Constant to pick from the document’s color constants, so the color updates everywhere when the constant changes.

Further reading: Constants

Copying colors #

Colors can be copied from the canvas by right-clicking with any tool selected, and choosing Copy Color as sRGB, Copy Color as sRGB Extended, or Copy Color as Display P3. Each item has a submenu of color formats.

When the eyedropper tool copies a material, the color is also placed on the clipboard as text. The format used is set by Copy colors as in the Colors tab of Skala’s settings.