10 个颜色角色
每个颜色都有明确用途,点右侧按钮即可复制对应格式。
Primary
primary主色,对应 CSS 变量 --color-primary
#c1272drgb(193, 39, 45)hsl(357.7, 66.4%, 45.5%)Primary Hover
primaryHover悬停态:--color-primary-hover
#a01d23rgb(160, 29, 35)hsl(357.3, 69.3%, 37.1%)Primary Active
primaryActive按下态:--color-primary-active
#7f151argb(127, 21, 26)hsl(357.2, 71.6%, 29%)Text Main
textMain主文字:--color-text-main
#1a1414rgb(26, 20, 20)hsl(0, 13%, 9%)Text Sub
textSub次级文字:--color-text-sub
#7a6a66rgb(122, 106, 102)hsl(12, 8.9%, 43.9%)Background
bg页面背景:--color-bg
#fffcf9rgb(255, 252, 249)hsl(30, 100%, 98.8%)Surface
surface卡片/面板背景:--color-surface
#fff4ecrgb(255, 244, 236)hsl(25.3, 100%, 96.3%)Border
border边框分割线:--color-border
#eddcd2rgb(237, 220, 210)hsl(22.2, 42.9%, 87.6%)Link
link链接色:--color-link
#86151argb(134, 21, 26)hsl(357.3, 72.9%, 30.4%)Accent
accent强调色:--color-accent
#d4a017rgb(212, 160, 23)hsl(43.5, 80.4%, 46.1%)搭配建议
依据主色所属的色系与明度给出的使用建议,人工撰写,不是模板套话。
主色明度居中,兼容性最好,浅色与深色主题都容易适配。
适合适合餐饮、零售、内容营销类场景,能有效刺激食欲与购买欲。
慎用金融、医疗等需要稳定与信任感的场景要慎用,容易显得激进、有攻击性。
搭配与中性灰、白搭配最稳;把蓝色留给确认状态,红色只留给危险和重点。
用在真实界面里是什么样
同一套配色在三端界面里的实际效果,这是判断好不好用最快的方式。
实时预览 · 点击切换端
your-site.com×+
用这套配色构建你的产品
导航、按钮、卡片与文字层级,一次预览全部效果。
主要操作了解更多卡片一次级说明文字,用于验证对比度是否符合 WCAG。
卡片二强调色用于高亮,注意与主色形成层次差。
卡片三中性文字色承载正文,是最频繁使用的颜色。
无障碍对比度检查
按 WCAG 2.1 标准计算。AA 为可访问底线,AAA 为增强级别。
| 前景 / 背景 | 对比度 | 文字场景 | 大字号场景 |
|---|---|---|---|
| 主文字 / 页面背景 | 17.8:1 | AAA | AAA |
| 主文字 / 卡片背景 | 16.81:1 | AAA | AAA |
| 主色 / 页面背景 | 5.71:1 | AAA | AAA |
导出到你的项目
四种格式,直接粘贴即可使用。也可用 URL 让工具/AI 自动抓取。
CSS 变量
:root {
--color-primary: #c1272d; /* Primary */
--color-primaryHover: #a01d23; /* Primary Hover */
--color-primaryActive: #7f151a; /* Primary Active */
--color-textMain: #1a1414; /* Text Main */
--color-textSub: #7a6a66; /* Text Sub */
--color-bg: #fffcf9; /* Background */
--color-surface: #fff4ec; /* Surface */
--color-border: #eddcd2; /* Border */
--color-link: #86151a; /* Link */
--color-accent: #d4a017; /* Accent */
}SCSS 变量
$color-primary: #c1272d; // Primary
$color-primaryHover: #a01d23; // Primary Hover
$color-primaryActive: #7f151a; // Primary Active
$color-textMain: #1a1414; // Text Main
$color-textSub: #7a6a66; // Text Sub
$color-bg: #fffcf9; // Background
$color-surface: #fff4ec; // Surface
$color-border: #eddcd2; // Border
$color-link: #86151a; // Link
$color-accent: #d4a017; // AccentTailwind 配置
// tailwind.config.js:朱墨红
module.exports = {
theme: {
extend: {
colors: {
'primary': '#c1272d',
'primaryHover': '#a01d23',
'primaryActive': '#7f151a',
'textMain': '#1a1414',
'textSub': '#7a6a66',
'bg': '#fffcf9',
'surface': '#fff4ec',
'border': '#eddcd2',
'link': '#86151a',
'accent': '#d4a017',
},
},
},
};机器可读 JSON
{
"name": "朱墨红",
"platform": "web",
"tags": [
"国风",
"浓烈",
"高对比"
],
"advice": {
"family": "红",
"depth": "主色明度居中,兼容性最好,浅色与深色主题都容易适配。",
"muted": null,
"suit": "适合餐饮、零售、内容营销类场景,能有效刺激食欲与购买欲。",
"avoid": "金融、医疗等需要稳定与信任感的场景要慎用,容易显得激进、有攻击性。",
"pair": "与中性灰、白搭配最稳;把蓝色留给确认状态,红色只留给危险和重点。"
},
"roles": {
"primary": "#c1272d",
"primaryHover": "#a01d23",
"primaryActive": "#7f151a",
"textMain": "#1a1414",
"textSub": "#7a6a66",
"bg": "#fffcf9",
"surface": "#fff4ec",
"border": "#eddcd2",
"link": "#86151a",
"accent": "#d4a017"
},
"contrast": {
"textOnBg": {
"ratio": 17.8,
"level": "AAA"
},
"primaryOnBg": {
"ratio": 5.71,
"level": "AAA"
},
"textOnSurface": {
"ratio": 16.81,
"level": "AAA"
}
}
}