10 个颜色角色
每个颜色都有明确用途,点右侧按钮即可复制对应格式。
主题色
theme小程序全局主题色(navigationBar / tabBar 选中)
#3ea171rgb(62, 161, 113)hsl(150.9, 44.4%, 43.7%)按钮色
btn主要按钮背景
#3ea171rgb(62, 161, 113)hsl(150.9, 44.4%, 43.7%)按钮禁用
btnDisabled禁用态按钮背景
#afd4c2rgb(175, 212, 194)hsl(150.8, 30.1%, 75.9%)页面背景
bg页面 backgroundColor
#f9fafargb(249, 250, 250)hsl(180, 9.1%, 97.8%)卡片背景
card商品卡 / 内容卡背景
#f4f6f5rgb(244, 246, 245)hsl(150, 10%, 96.1%)主文字
textMain标题与正文
#232926rgb(35, 41, 38)hsl(150, 7.9%, 14.9%)次文字
textSub辅助说明、时间戳
#6a7c73rgb(106, 124, 115)hsl(150, 7.8%, 45.1%)分割线
divider列表分割线
#e3e8e6rgb(227, 232, 230)hsl(156, 9.8%, 90%)价格色
price价格 / 促销数字,通常暖色系
#d24327rgb(210, 67, 39)hsl(9.8, 68.7%, 48.8%)标签色
tag标签 / 优惠券底色
#5453a0rgb(84, 83, 160)hsl(240.8, 31.7%, 47.6%)搭配建议
依据主色所属的色系与明度给出的使用建议,人工撰写,不是模板套话。
主色明度居中,兼容性最好,浅色与深色主题都容易适配。
适合适合健康、环保、金融、增长类场景,天然带安全、通过的语义。
慎用偏黄的草绿容易显土,需要靠明度与饱和度仔细调校。
搭配配米白与暖灰更显质感,同色系深浅叠用比配第三色更稳。
用在真实界面里是什么样
同一套配色在三端界面里的实际效果,这是判断好不好用最快的方式。
实时预览 · 点击切换端
9:41
小程序商城•••
商品名称示例规格 · 500g
¥39.9
商品名称示例规格 · 1kg
¥68.0
立即购买已售罄
无障碍对比度检查
按 WCAG 2.1 标准计算。AA 为可访问底线,AAA 为增强级别。
| 前景 / 背景 | 对比度 | 文字场景 | 大字号场景 |
|---|---|---|---|
| 主文字 / 页面背景 | 14.18:1 | AAA | AAA |
| 主文字 / 卡片背景 | 13.66:1 | AAA | AAA |
| 主色 / 页面背景 | 3.07:1 | AA | AA |
同端其他配色
按色系与标签相近度排序,挑出最值得接着看的几套。
导出到你的项目
四种格式,直接粘贴即可使用。也可用 URL 让工具/AI 自动抓取。
CSS 变量
:root {
--color-theme: #3ea171; /* 主题色 */
--color-btn: #3ea171; /* 按钮色 */
--color-btnDisabled: #afd4c2; /* 按钮禁用 */
--color-bg: #f9fafa; /* 页面背景 */
--color-card: #f4f6f5; /* 卡片背景 */
--color-textMain: #232926; /* 主文字 */
--color-textSub: #6a7c73; /* 次文字 */
--color-divider: #e3e8e6; /* 分割线 */
--color-price: #d24327; /* 价格色 */
--color-tag: #5453a0; /* 标签色 */
}SCSS 变量
$color-theme: #3ea171; // 主题色
$color-btn: #3ea171; // 按钮色
$color-btnDisabled: #afd4c2; // 按钮禁用
$color-bg: #f9fafa; // 页面背景
$color-card: #f4f6f5; // 卡片背景
$color-textMain: #232926; // 主文字
$color-textSub: #6a7c73; // 次文字
$color-divider: #e3e8e6; // 分割线
$color-price: #d24327; // 价格色
$color-tag: #5453a0; // 标签色Tailwind 配置
// tailwind.config.js:青苹绿
module.exports = {
theme: {
extend: {
colors: {
'theme': '#3ea171',
'btn': '#3ea171',
'btnDisabled': '#afd4c2',
'bg': '#f9fafa',
'card': '#f4f6f5',
'textMain': '#232926',
'textSub': '#6a7c73',
'divider': '#e3e8e6',
'price': '#d24327',
'tag': '#5453a0',
},
},
},
};机器可读 JSON
{
"name": "青苹绿",
"platform": "miniapp",
"tags": [
"国风",
"绿"
],
"advice": {
"family": "绿",
"depth": "主色明度居中,兼容性最好,浅色与深色主题都容易适配。",
"muted": null,
"suit": "适合健康、环保、金融、增长类场景,天然带安全、通过的语义。",
"avoid": "偏黄的草绿容易显土,需要靠明度与饱和度仔细调校。",
"pair": "配米白与暖灰更显质感,同色系深浅叠用比配第三色更稳。"
},
"roles": {
"theme": "#3ea171",
"btn": "#3ea171",
"btnDisabled": "#afd4c2",
"bg": "#f9fafa",
"card": "#f4f6f5",
"textMain": "#232926",
"textSub": "#6a7c73",
"divider": "#e3e8e6",
"price": "#d24327",
"tag": "#5453a0"
},
"contrast": {
"textOnBg": {
"ratio": 14.18,
"level": "AAA"
},
"primaryOnBg": {
"ratio": 3.07,
"level": "AA"
},
"textOnSurface": {
"ratio": 13.66,
"level": "AAA"
}
}
}