最接近的命名颜色 · #9A7BAA
#9A7BAA
最接近的命名颜色: Heart Potion
#9A7BAA(rgb(154 123 170)、hsl(280 22% 57%)、oklch(0.629 0.077 313.9))最接近命名颜色 Heart Potion。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#9A7BAA
oklch(0.629 0.077 313.9)
颜色转换
- HEX
- #9a7baa
- RGB
- rgb(154 123 170)
- HSL
- hsl(280 22% 57%)
- HWB
- hwb(280 48% 33%)
- OKLCH
- oklch(0.629 0.077 313.9)
- OKLab
- oklab(0.629 0.054 -0.056)
- CIE Lab
- lab(55.91 19.03 -20.45)
- LCH
- lch(55.91 27.93 312.9)
- CMYK
- cmyk(9% 28% 0% 33%)
浅色调 · 深色调 · 灰色调
浅色调
- A488B2
- AE94BB
- B8A1C3
- C2AECC
- CCBBD4
- D6C9DD
- E0D6E5
- EAE4EE
- F5F1F6
深色调
- 856A93
- 715A7D
- 5E4A68
- 4B3A53
- 392C3F
- 271E2D
- 17101B
- 09050B
- 010101
灰色调
- 977CA6
- 957CA2
- 927D9E
- 907D99
- 8D7E95
- 8B7E91
- 887F8D
- 857F89
- 838084
配色和谐
互补色 +180°
- 9A7BAA
Heart Potion
- 769363
≈ Van Gogh Olives
类似色 -30° +30°
- 9A7BAA
Heart Potion
- 8383B7
≈ Aster Purple
- AB7694
≈ Cipher
三角配色 +120° +240°
- 9A7BAA
Heart Potion
- A58252
≈ Leather Tan
- 499896
≈ Aquatic Green
分裂互补色 +150° +210°
- 9A7BAA
Heart Potion
- 908B53
≈ Cornus Green
- 5A987C
≈ Fake Fern
四角配色 +90° +180° +270°
- 9A7BAA
Heart Potion
- B17A62
≈ Happy Trails
- 769363
≈ Van Gogh Olives
- 5093AC
≈ Jet Ski
对比度与无障碍
Ag
Fail白底
WCAG 3.62:1 · APCA Lc 64
Ag
AA黑底
WCAG 5.78:1 · APCA Lc 38
最佳文字颜色: #000000
WCAG 5.78:1 (AA) · APCA Lc 38
Contrast pairs
代码片段
CSS
:root {
--heart-potion: #9a7baa;
--heart-potion-rgb: 154 123 170;
--heart-potion-oklch: oklch(0.629 0.077 313.9);
}
.element {
color: var(--heart-potion);
background-color: hsl(280 22% 57%);
border-color: oklch(0.629 0.077 313.9);
}Tailwind CSS v4
@theme {
--color-heart-potion: #9a7baa;
--color-heart-potion-50: #feefff;
--color-heart-potion-100: #f2e1fa;
--color-heart-potion-200: #e1cbeb;
--color-heart-potion-300: #c7acd3;
--color-heart-potion-400: #af91bf;
--color-heart-potion-500: #9977aa;
--color-heart-potion-600: #816590;
--color-heart-potion-700: #685073;
--color-heart-potion-800: #4b3b56;
--color-heart-potion-900: #34283c;
--color-heart-potion-950: #201626;
}SCSS
$heart-potion: #9a7baa;
$heart-potion-rgb: 154, 123, 170;
$heart-potion-light: mix(#fff, $heart-potion, 20%);
$heart-potion-dark: mix(#000, $heart-potion, 20%);
.element {
color: $heart-potion;
box-shadow: 0 0 0 2px rgba($heart-potion, 0.35);
}