10 个颜色角色
每个颜色都有明确用途,点右侧按钮即可复制对应格式。
Primary
primary主色,对应 CSS 变量 --color-primary
#b311c5rgb(179, 17, 197)hsl(294, 84.1%, 42%)Primary Hover
primaryHover悬停态:--color-primary-hover
#790986rgb(121, 9, 134)hsl(293.8, 87.4%, 28%)Primary Active
primaryActive按下态:--color-primary-active
#46044drgb(70, 4, 77)hsl(294.2, 90.1%, 15.9%)Text Main
textMain主文字:--color-text-main
#292329rgb(41, 35, 41)hsl(300, 7.9%, 14.9%)Text Sub
textSub次级文字:--color-text-sub
#7a6a7crgb(122, 106, 124)hsl(293.3, 7.8%, 45.1%)Background
bg页面背景:--color-bg
#faf9fargb(250, 249, 250)hsl(300, 9.1%, 97.8%)Surface
surface卡片/面板背景:--color-surface
#f6f4f6rgb(246, 244, 246)hsl(300, 10%, 96.1%)Border
border边框分割线:--color-border
#e7e3e8rgb(231, 227, 232)hsl(288, 9.8%, 90%)Link
link链接色:--color-link
#760783rgb(118, 7, 131)hsl(293.7, 89.9%, 27.1%)Accent
accent强调色:--color-accent
#3ff22crgb(63, 242, 44)hsl(114.2, 88.4%, 56.1%)搭配建议
依据主色所属的色系与明度给出的使用建议,人工撰写,不是模板套话。
主色明度居中,兼容性最好,浅色与深色主题都容易适配。
适合做点缀时能软化整个界面,适合缓解生硬的工具感。
慎用用量过大容易甜腻,高饱和时尤其明显。
搭配与灰、白搭配不会过于甜腻,点缀一点深莓紫能增加层次。
用在真实界面里是什么样
同一套配色在三端界面里的实际效果,这是判断好不好用最快的方式。
实时预览 · 点击切换端
your-site.com×+
用这套配色构建你的产品
导航、按钮、卡片与文字层级,一次预览全部效果。
主要操作了解更多卡片一次级说明文字,用于验证对比度是否符合 WCAG。
卡片二强调色用于高亮,注意与主色形成层次差。
卡片三中性文字色承载正文,是最频繁使用的颜色。
无障碍对比度检查
按 WCAG 2.1 标准计算。AA 为可访问底线,AAA 为增强级别。
| 前景 / 背景 | 对比度 | 文字场景 | 大字号场景 |
|---|---|---|---|
| 主文字 / 页面背景 | 14.63:1 | AAA | AAA |
| 主文字 / 卡片背景 | 14.04:1 | AAA | AAA |
| 主色 / 页面背景 | 5.26:1 | AAA | AAA |
导出到你的项目
四种格式,直接粘贴即可使用。也可用 URL 让工具/AI 自动抓取。
CSS 变量
:root {
--color-primary: #b311c5; /* Primary */
--color-primaryHover: #790986; /* Primary Hover */
--color-primaryActive: #46044d; /* Primary Active */
--color-textMain: #292329; /* Text Main */
--color-textSub: #7a6a7c; /* Text Sub */
--color-bg: #faf9fa; /* Background */
--color-surface: #f6f4f6; /* Surface */
--color-border: #e7e3e8; /* Border */
--color-link: #760783; /* Link */
--color-accent: #3ff22c; /* Accent */
}SCSS 变量
$color-primary: #b311c5; // Primary
$color-primaryHover: #790986; // Primary Hover
$color-primaryActive: #46044d; // Primary Active
$color-textMain: #292329; // Text Main
$color-textSub: #7a6a7c; // Text Sub
$color-bg: #faf9fa; // Background
$color-surface: #f6f4f6; // Surface
$color-border: #e7e3e8; // Border
$color-link: #760783; // Link
$color-accent: #3ff22c; // AccentTailwind 配置
// tailwind.config.js:桃花粉
module.exports = {
theme: {
extend: {
colors: {
'primary': '#b311c5',
'primaryHover': '#790986',
'primaryActive': '#46044d',
'textMain': '#292329',
'textSub': '#7a6a7c',
'bg': '#faf9fa',
'surface': '#f6f4f6',
'border': '#e7e3e8',
'link': '#760783',
'accent': '#3ff22c',
},
},
},
};机器可读 JSON
{
"name": "桃花粉",
"platform": "web",
"tags": [
"治愈",
"粉"
],
"advice": {
"family": "粉",
"depth": "主色明度居中,兼容性最好,浅色与深色主题都容易适配。",
"muted": null,
"suit": "做点缀时能软化整个界面,适合缓解生硬的工具感。",
"avoid": "用量过大容易甜腻,高饱和时尤其明显。",
"pair": "与灰、白搭配不会过于甜腻,点缀一点深莓紫能增加层次。"
},
"roles": {
"primary": "#b311c5",
"primaryHover": "#790986",
"primaryActive": "#46044d",
"textMain": "#292329",
"textSub": "#7a6a7c",
"bg": "#faf9fa",
"surface": "#f6f4f6",
"border": "#e7e3e8",
"link": "#760783",
"accent": "#3ff22c"
},
"contrast": {
"textOnBg": {
"ratio": 14.63,
"level": "AAA"
},
"primaryOnBg": {
"ratio": 5.26,
"level": "AAA"
},
"textOnSurface": {
"ratio": 14.04,
"level": "AAA"
}
}
}