How to copy a color
Click the hex label displayed below any palette color swatch. A small format menu appears. Select the format you want — the value is copied to your clipboard immediately and the menu closes.Available formats
All examples below use the color#ff5733 (a vivid red-orange).
HEX
A lowercase 6-character hexadecimal color code, prefixed with#.
RGB
A CSSrgb() function with decimal values in the 0–255 range.
rgba(var(--color-rgb), 0.5)) or when working in a context that expects RGB triplets instead of hex strings.
HSL
A CSShsl() function with hue in degrees (0–360), saturation as a percentage, and lightness as a percentage.
CSS Variable
A CSS custom property declaration using the variable name--color-primary by default.
:root block, then reference it throughout your stylesheet as var(--color-primary).
Tailwind
A key-value pair in the format Tailwind’stheme.extend.colors expects.
tailwind.config.js colors object. The name primary can be changed once pasted. Tailwind will expose utility classes like bg-primary, text-primary, and border-primary.
SCSS
A Sass variable declaration using the$color- prefix.
.scss or .sass files. You can then reference the variable throughout your stylesheets as $color-primary, or pass it to Sass functions like darken() or mix().
Format reference table
| Format | Output for #ff5733 | File types |
|---|---|---|
| HEX | #ff5733 | Any CSS, HTML, design tool |
| RGB | rgb(255, 87, 51) | CSS, JavaScript |
| HSL | hsl(14, 100%, 60%) | CSS, JavaScript |
| CSS Variable | --color-primary: #ff5733; | CSS (:root block, design tokens) |
| Tailwind | 'primary': '#ff5733' | tailwind.config.js |
| SCSS | $color-primary: #ff5733; | .scss, .sass |
| CSS Name | e.g. tomato (only when a match exists) | CSS, HTML |
CSS named color
When the color is very close to one of the 148 CSS named colors (within a tiny perceptual threshold in Oklab space), a seventh option — CSS Name — appears at the bottom of the format menu. Selecting it copies the CSS keyword directly (e.g.cornflowerblue, rebeccapurple).
The CSS Name option only appears when the color is perceptually close to a named CSS color. It is not available for every color.
Exporting all colors at once
The single-color copy formats above are useful for one-off references. If you need all palette colors in a single file, use the Export dialog (E) to download the full palette as CSS variables, JSON, Tailwind config, or SCSS variables. See export formats for details.Related
Export formats
Export all colors at once to code or art app formats.
Color editing
Edit any color in the palette directly.
Keyboard shortcuts
Full shortcut reference for the whole app.