# Palettes, Formats & Contrast

> Manage colour palettes, Color Dock, 28+7 code formats, Smart Formats, Smart Profiles, and WCAG contrast checks in Pik.

## Library, Color Panel & Color Dock [#library-color-panel--color-dock]

- **Library**: Organize **Color History** and custom palettes in list or grid view. Drag to reorder, `⌥`-drag to duplicate, or drag a swatch straight out into another app. Edit, duplicate, merge, lock, and clean up palettes with full undo/redo.
- **Import & Export**: Export palettes as **Pik Palette**, **ASE**, **CLR**, **JSON**, or **PDF**. Import **ASE**, **CLR**, **JSON**, **Pik Palette**, or parse colours directly from text on your clipboard.
- **Color Panel**: Fine-tune any swatch using the saturation/brightness square, hue and opacity sliders, Hex input, and RGB/HSB/HSL fields. Add names and notes before copying or saving.
- **Color Dock**: Pin a slim bar of your palettes along any screen edge across every Space. Hover a palette strip to reveal its swatches, click to copy, or drag a colour into your canvas.

## 28+7 code formats & custom templates [#287-code-formats--custom-templates]

Pik ships with **28 built-in code formats**—including CSS, Swift, SwiftUI, UIColor, NSColor, Android, .NET, Java, OpenGL, and CGColor—plus **7 additional modern formats** (such as OKLCH, Display P3, Tailwind, Flutter, and Jetpack Compose) one toggle away, and a **template editor** for your own syntax.

- **Smart Formats**: Automatically switches output format based on the frontmost app (for example, SwiftUI in Xcode and CSS in your code editor).
- **Smart Profiles**: Converts captured colours cleanly into **sRGB**, **Display P3**, **Adobe RGB**, or your display's native colour profile.

## WCAG contrast & colour-blindness previews [#wcag-contrast--colour-blindness-previews]

- **Contrast Checker**: Compare any two colours to see their exact ratio and WCAG grade (**Fail**, **AA Large**, **AA**, **AAA**). Tweak hue, saturation, and brightness live, or click **Fix** to nudge a failing pair up to at least 3:1. Built-in eyedroppers and swap let you test directly from the screen and save the pair as a palette.
- **Colour-blindness simulation**: Preview **protanopia**, **deuteranopia**, **tritanopia**, and **achromatopsia** directly from the menu bar, on every swatch, and inside the live loupe.
