顏色色階產生器

從一個基礎顏色產生 50-950 共 11 個色階,類似 Tailwind CSS 顏色體系,支援多種格式匯出。

基礎顏色

H
239°
S
84%
L
67%

預設顏色

匯出程式碼

:root {
  --indigo-50: #f3f3fb;
  --indigo-100: #e6e6f9;
  --indigo-200: #c5c6f6;
  --indigo-300: #9193f2;
  --indigo-400: #4d4fef;
  --indigo-500: #1418eb;
  --indigo-600: #0c0fca;
  --indigo-700: #070aa6;
  --indigo-800: #05077f;
  --indigo-900: #030563;
  --indigo-950: #00013d;
}

色階預覽

indigo
50#f3f3fb
hsl(239, 54%, 97%)
100#e6e6f9
hsl(239, 64%, 94%)
200#c5c6f6
hsl(239, 74%, 87%)
300#9193f2
hsl(239, 79%, 76%)
400#4d4fef
hsl(239, 84%, 62%)
500#1418eb
hsl(239, 84%, 50%)
600#0c0fca
hsl(239, 89%, 42%)
700#070aa6
hsl(239, 92%, 34%)
800#05077f
hsl(239, 92%, 26%)
900#030563
hsl(239, 94%, 20%)
950#00013d
hsl(239, 99%, 12%)

色階條

50
100
200
300
400
500
600
700
800
900
950

文字對比預覽

色階 50

#f3f3fb

The quick brown fox jumps over the lazy dog.

色階 100

#e6e6f9

The quick brown fox jumps over the lazy dog.

色階 200

#c5c6f6

The quick brown fox jumps over the lazy dog.

色階 300

#9193f2

The quick brown fox jumps over the lazy dog.

色階 400

#4d4fef

The quick brown fox jumps over the lazy dog.

色階 500

#1418eb

The quick brown fox jumps over the lazy dog.

色階 600

#0c0fca

The quick brown fox jumps over the lazy dog.

色階 700

#070aa6

The quick brown fox jumps over the lazy dog.

色階 800

#05077f

The quick brown fox jumps over the lazy dog.

色階 900

#030563

The quick brown fox jumps over the lazy dog.

色階 950

#00013d

The quick brown fox jumps over the lazy dog.

使用說明

功能說明

  • 採用 HSL 色彩空間,從基礎顏色產生 50-950 共 11 級色階
  • 色階體系與 Tailwind CSS 預設色階一致,可直接用於專案
  • 支援 4 種匯出格式:CSS Variables、SCSS Map、Tailwind v4 @theme、JSON
  • 內建 17 種預設顏色,一鍵套用常用品牌色
  • 即時預覽文字在各級色階上的對比效果
  • 點選色階列或色階條即可快速複製對應的 HEX 值

使用技巧

  • 點選左側色塊可開啟系統顏色選擇器
  • 輸入 HEX 值(如 #6366f1)可精確指定顏色
  • 填寫顏色名稱後,匯出程式碼中的變數名稱會自動替換
  • 匯出 Tailwind v4 格式時,使用 @theme 指令設定自訂顏色
  • 將游標移到色階條上可查看對應的色階編號,點選即可複製 HEX 值
  • 文字對比預覽可協助你選擇合適的文字顏色搭配