10 个颜色角色
每个颜色都有明确用途,点右侧按钮即可复制对应格式。
主题色
theme小程序全局主题色(navigationBar / tabBar 选中)
#520ea4rgb(82, 14, 164)hsl(267.2, 84.3%, 34.9%)按钮色
btn主要按钮背景
#520ea4rgb(82, 14, 164)hsl(267.2, 84.3%, 34.9%)按钮禁用
btnDisabled禁用态按钮背景
#a570e6rgb(165, 112, 230)hsl(266.9, 70.2%, 67.1%)页面背景
bg页面 backgroundColor
#faf9fargb(250, 249, 250)hsl(300, 9.1%, 97.8%)卡片背景
card商品卡 / 内容卡背景
#f5f4f6rgb(245, 244, 246)hsl(270, 10%, 96.1%)主文字
textMain标题与正文
#262329rgb(38, 35, 41)hsl(270, 7.9%, 14.9%)次文字
textSub辅助说明、时间戳
#726a7crgb(114, 106, 124)hsl(266.7, 7.8%, 45.1%)分割线
divider列表分割线
#e5e3e8rgb(229, 227, 232)hsl(264, 9.8%, 90%)价格色
price价格 / 促销数字,通常暖色系
#d0391brgb(208, 57, 27)hsl(9.9, 77%, 46.1%)标签色
tag标签 / 优惠券底色
#9a27a0rgb(154, 39, 160)hsl(297, 60.8%, 39%)搭配建议
依据主色所属的色系与明度给出的使用建议,人工撰写,不是模板套话。
这套配色的主色偏深、分量感强,适合深色主题,或需要传递专业、稳重印象的界面。
适合紫色的尊贵语义适合会员、权益、稀缺类界面。
慎用紫与红、蓝容易糊成一片,配色时要注意拉开明度差。
搭配配浅粉与米白更柔和,想沉稳就压深蓝。
用在真实界面里是什么样
同一套配色在三端界面里的实际效果,这是判断好不好用最快的方式。
实时预览 · 点击切换端
9:41
小程序商城•••
商品名称示例规格 · 500g
¥39.9
商品名称示例规格 · 1kg
¥68.0
立即购买已售罄
无障碍对比度检查
按 WCAG 2.1 标准计算。AA 为可访问底线,AAA 为增强级别。
| 前景 / 背景 | 对比度 | 文字场景 | 大字号场景 |
|---|---|---|---|
| 主文字 / 页面背景 | 14.76:1 | AAA | AAA |
| 主文字 / 卡片背景 | 14.14:1 | AAA | AAA |
| 主色 / 页面背景 | 10.21:1 | AAA | AAA |
同端其他配色
按色系与标签相近度排序,挑出最值得接着看的几套。
导出到你的项目
四种格式,直接粘贴即可使用。也可用 URL 让工具/AI 自动抓取。
CSS 变量
:root {
--color-theme: #520ea4; /* 主题色 */
--color-btn: #520ea4; /* 按钮色 */
--color-btnDisabled: #a570e6; /* 按钮禁用 */
--color-bg: #faf9fa; /* 页面背景 */
--color-card: #f5f4f6; /* 卡片背景 */
--color-textMain: #262329; /* 主文字 */
--color-textSub: #726a7c; /* 次文字 */
--color-divider: #e5e3e8; /* 分割线 */
--color-price: #d0391b; /* 价格色 */
--color-tag: #9a27a0; /* 标签色 */
}SCSS 变量
$color-theme: #520ea4; // 主题色
$color-btn: #520ea4; // 按钮色
$color-btnDisabled: #a570e6; // 按钮禁用
$color-bg: #faf9fa; // 页面背景
$color-card: #f5f4f6; // 卡片背景
$color-textMain: #262329; // 主文字
$color-textSub: #726a7c; // 次文字
$color-divider: #e5e3e8; // 分割线
$color-price: #d0391b; // 价格色
$color-tag: #9a27a0; // 标签色Tailwind 配置
// tailwind.config.js:檀紫砂
module.exports = {
theme: {
extend: {
colors: {
'theme': '#520ea4',
'btn': '#520ea4',
'btnDisabled': '#a570e6',
'bg': '#faf9fa',
'card': '#f5f4f6',
'textMain': '#262329',
'textSub': '#726a7c',
'divider': '#e5e3e8',
'price': '#d0391b',
'tag': '#9a27a0',
},
},
},
};机器可读 JSON
{
"name": "檀紫砂",
"platform": "miniapp",
"tags": [
"清新",
"紫"
],
"advice": {
"family": "紫",
"depth": "这套配色的主色偏深、分量感强,适合深色主题,或需要传递专业、稳重印象的界面。",
"muted": null,
"suit": "紫色的尊贵语义适合会员、权益、稀缺类界面。",
"avoid": "紫与红、蓝容易糊成一片,配色时要注意拉开明度差。",
"pair": "配浅粉与米白更柔和,想沉稳就压深蓝。"
},
"roles": {
"theme": "#520ea4",
"btn": "#520ea4",
"btnDisabled": "#a570e6",
"bg": "#faf9fa",
"card": "#f5f4f6",
"textMain": "#262329",
"textSub": "#726a7c",
"divider": "#e5e3e8",
"price": "#d0391b",
"tag": "#9a27a0"
},
"contrast": {
"textOnBg": {
"ratio": 14.76,
"level": "AAA"
},
"primaryOnBg": {
"ratio": 10.21,
"level": "AAA"
},
"textOnSurface": {
"ratio": 14.14,
"level": "AAA"
}
}
}