最接近的命名颜色 · #8F5A8E
#8F5A8E
最接近的命名颜色: Grape Candy
#8F5A8E(rgb(143 90 142)、hsl(301 23% 46%)、oklch(0.545 0.1 327.5))最接近命名颜色 Grape Candy。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#8F5A8E
oklch(0.545 0.1 327.5)
颜色转换
- HEX
- #8f5a8e
- RGB
- rgb(143 90 142)
- HSL
- hsl(301 23% 46%)
- HWB
- hwb(301 35% 44%)
- OKLCH
- oklch(0.545 0.1 327.5)
- OKLab
- oklab(0.545 0.085 -0.054)
- CIE Lab
- lab(45.74 28.77 -19.67)
- LCH
- lch(45.74 34.85 325.6)
- CMYK
- cmyk(0% 37% 1% 44%)
浅色调 · 深色调 · 灰色调
浅色调
- 9A6A99
- A57AA4
- B18AAF
- BC9ABA
- C7AAC6
- D2BBD1
- DDCCDC
- E9DDE8
- F4EEF3
深色调
- 7C4D7B
- 694168
- 573556
- 452944
- 341E34
- 241324
- 150915
- 070307
- 010001
灰色调
- 8E5E8D
- 8D628C
- 8B668A
- 8A6A89
- 896E88
- 877286
- 857585
- 847983
- 827C82
配色和谐
互补色 +180°
- 8F5A8E
Grape Candy
- 44804D
≈ Tarmac Green
类似色 -30° +30°
- 8F5A8E
Grape Candy
- 7763A3
≈ Scampi
- 9E5670
≈ Mulberry Mix
三角配色 +120° +240°
- 8F5A8E
Grape Candy
- 896C1C
≈ Muddy Brown
- 007F8C
≈ Metallic Seaweed
分裂互补色 +150° +210°
- 8F5A8E
Grape Candy
- 6C782C
≈ Castelvetrano Olive
- 02836F
≈ Viridis
四角配色 +90° +180° +270°
- 8F5A8E
Grape Candy
- 9B602F
≈ Gingerbread Crumble
- 44804D
≈ Tarmac Green
- 2A78A3
≈ In the Mood
对比度与无障碍
Ag
AA白底
WCAG 5.22:1 · APCA Lc 76
Ag
Fail黑底
WCAG 4.02:1 · APCA Lc 26
最佳文字颜色: #FFFFFF
WCAG 5.22:1 (AA) · APCA Lc 76
Contrast pairs
代码片段
CSS
:root {
--grape-candy: #8f5a8e;
--grape-candy-rgb: 143 90 142;
--grape-candy-oklch: oklch(0.545 0.1 327.5);
}
.element {
color: var(--grape-candy);
background-color: hsl(301 23% 46%);
border-color: oklch(0.545 0.1 327.5);
}Tailwind CSS v4
@theme {
--color-grape-candy: #8f5a8e;
--color-grape-candy-50: #ffebff;
--color-grape-candy-100: #fcdcf8;
--color-grape-candy-200: #edc5e9;
--color-grape-candy-300: #d5a5d0;
--color-grape-candy-400: #bf89bd;
--color-grape-candy-500: #a96da8;
--color-grape-candy-600: #8f5d8e;
--color-grape-candy-700: #734a72;
--color-grape-candy-800: #543655;
--color-grape-candy-900: #3b253b;
--color-grape-candy-950: #251325;
}SCSS
$grape-candy: #8f5a8e;
$grape-candy-rgb: 143, 90, 142;
$grape-candy-light: mix(#fff, $grape-candy, 20%);
$grape-candy-dark: mix(#000, $grape-candy, 20%);
.element {
color: $grape-candy;
box-shadow: 0 0 0 2px rgba($grape-candy, 0.35);
}