最接近的命名颜色 · #AF91AF
#AF91AF
最接近的命名颜色: Metal Petal
#AF91AF(rgb(175 145 175)、hsl(300 16% 63%)、oklch(0.694 0.055 326.2))最接近命名颜色 Metal Petal。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#AF91AF
oklch(0.694 0.055 326.2)
颜色转换
- HEX
- #af91af
- RGB
- rgb(175 145 175)
- HSL
- hsl(300 16% 63%)
- HWB
- hwb(300 57% 31%)
- OKLCH
- oklch(0.694 0.055 326.2)
- OKLab
- oklab(0.694 0.046 -0.031)
- CIE Lab
- lab(63.7 15.59 -11.35)
- LCH
- lch(63.7 19.29 323.9)
- CMYK
- cmyk(0% 17% 0% 31%)
浅色调 · 深色调 · 灰色调
浅色调
- B79CB7
- BFA6BF
- C7B1C7
- CFBCCF
- D7C7D7
- DFD2DF
- E7DDE7
- EFE8EF
- F7F4F7
深色调
- 987D98
- 816A81
- 6B586B
- 564656
- 413541
- 2E252E
- 1C151C
- 0B070B
- 010101
灰色调
- AA8FAA
- A68EA5
- A18CA1
- 9C8A9C
- 978997
- 938793
- 8E858E
- 898489
- 858285
配色和谐
互补色 +180°
- AF91AF
Metal Petal
- 87A688
≈ Mermaid’s Cove
类似色 -30° +30°
- AF91AF
Metal Petal
- 9F96BB
≈ Grape Gatsby
- B98F9D
≈ Cherry Juice
三角配色 +120° +240°
- AF91AF
Metal Petal
- AC9B75
≈ Brussels Sprouts
- 73A7AD
≈ Water Cooler
分裂互补色 +150° +210°
- AF91AF
Metal Petal
- 9AA17A
≈ Renkon Beige
- 78A89B
≈ Twining Vine
四角配色 +90° +180° +270°
- AF91AF
Metal Petal
- B8947C
≈ Cool Clay
- 87A688
≈ Mermaid’s Cove
- 7CA2BA
≈ Ocean Surf
对比度与无障碍
Ag
Fail白底
WCAG 2.80:1 · APCA Lc 54
Ag
AAA黑底
WCAG 7.49:1 · APCA Lc 48
最佳文字颜色: #000000
WCAG 7.49:1 (AAA) · APCA Lc 48
Contrast pairs
代码片段
CSS
:root {
--metal-petal: #af91af;
--metal-petal-rgb: 175 145 175;
--metal-petal-oklch: oklch(0.694 0.055 326.2);
}
.element {
color: var(--metal-petal);
background-color: hsl(300 16% 63%);
border-color: oklch(0.694 0.055 326.2);
}Tailwind CSS v4
@theme {
--color-metal-petal: #af91af;
--color-metal-petal-50: #fef0fd;
--color-metal-petal-100: #f3e2f1;
--color-metal-petal-200: #e2cce0;
--color-metal-petal-300: #c8aec6;
--color-metal-petal-400: #b094b0;
--color-metal-petal-500: #9a7a9a;
--color-metal-petal-600: #826782;
--color-metal-petal-700: #685268;
--color-metal-petal-800: #4c3c4d;
--color-metal-petal-900: #352936;
--color-metal-petal-950: #201721;
}SCSS
$metal-petal: #af91af;
$metal-petal-rgb: 175, 145, 175;
$metal-petal-light: mix(#fff, $metal-petal, 20%);
$metal-petal-dark: mix(#000, $metal-petal, 20%);
.element {
color: $metal-petal;
box-shadow: 0 0 0 2px rgba($metal-petal, 0.35);
}