Color Picker Guide

阅读时间 8 分钟更新于 2026-06-10
📘 本文内容为英文原文,提供最准确的技术信息。中文解读和实操指南正在完善中。你也可以使用页面顶部的翻译工具。

Every developer has been there: you're staring at a color picker with 16.7 million options, and someone on Slack says "make the blue more... blue." Picking colors in a vacuum is impossible. You need structure.

Professional color selection follows constraints: accessibility scores, brand identity, emotional targets, and technical limitations (8-bit color vs P3 wide gamut). Remove the guesswork — here's how the pros do it.

color models

Design tokens at Figma: Figma's color picker exposes OKLCH, HSL, and HEX simultaneously — because different color tasks need different formats. Picking a shade? Use HSL. Ensuring perceptual uniformity? Use OKLCH. Handoff to dev? HEX.

Apple's Human Interface Guidelines specify color in terms of "semantic roles" not specific values: primary, secondary, accent, background, groupedBackground. This abstraction makes dark mode automatic — the semantic roles swap values, not the UI code.

Adobe's Spectrum design system generates colors from HSL curves with mathematical precision. Every color is computed, not chosen. This ensures brand consistency across 50+ products.

selection strategy

Design tokens at Figma: Figma's color picker exposes OKLCH, HSL, and HEX simultaneously — because different color tasks need different formats. Picking a shade? Use HSL. Ensuring perceptual uniformity? Use OKLCH. Handoff to dev? HEX.

Apple's Human Interface Guidelines specify color in terms of "semantic roles" not specific values: primary, secondary, accent, background, groupedBackground. This abstraction makes dark mode automatic — the semantic roles swap values, not the UI code.

Adobe's Spectrum design system generates colors from HSL curves with mathematical precision. Every color is computed, not chosen. This ensures brand consistency across 50+ products.

工具详解

Design tokens at Figma: Figma's color picker exposes OKLCH, HSL, and HEX simultaneously — because different color tasks need different formats. Picking a shade? Use HSL. Ensuring perceptual uniformity? Use OKLCH. Handoff to dev? HEX.

Apple's Human Interface Guidelines specify color in terms of "semantic roles" not specific values: primary, secondary, accent, background, groupedBackground. This abstraction makes dark mode automatic — the semantic roles swap values, not the UI code.

Adobe's Spectrum design system generates colors from HSL curves with mathematical precision. Every color is computed, not chosen. This ensures brand consistency across 50+ products.

common mistakes

Design tokens at Figma: Figma's color picker exposes OKLCH, HSL, and HEX simultaneously — because different color tasks need different formats. Picking a shade? Use HSL. Ensuring perceptual uniformity? Use OKLCH. Handoff to dev? HEX.

Apple's Human Interface Guidelines specify color in terms of "semantic roles" not specific values: primary, secondary, accent, background, groupedBackground. This abstraction makes dark mode automatic — the semantic roles swap values, not the UI code.

Adobe's Spectrum design system generates colors from HSL curves with mathematical precision. Every color is computed, not chosen. This ensures brand consistency across 50+ products.

免费工具推荐

用这些免费工具实操你学到的知识: