最接近的命名颜色 · #AB4F5C
#AB4F5C
最接近的命名颜色: Cherry on Top
#AB4F5C(rgb(171 79 92)、hsl(352 37% 49%)、oklch(0.547 0.121 13.2))最接近命名颜色 Cherry on Top。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#AB4F5C
oklch(0.547 0.121 13.2)
颜色转换
- HEX
- #ab4f5c
- RGB
- rgb(171 79 92)
- HSL
- hsl(352 37% 49%)
- HWB
- hwb(352 31% 33%)
- OKLCH
- oklch(0.547 0.121 13.2)
- OKLab
- oklab(0.547 0.118 0.028)
- CIE Lab
- lab(46.06 39.4 11.56)
- LCH
- lch(46.06 41.06 16.3)
- CMYK
- cmyk(0% 54% 46% 33%)
浅色调 · 深色调 · 灰色调
浅色调
- B5616B
- BE727A
- C8838A
- D0959A
- D9A6AA
- E1B7BB
- E9C9CB
- F1DBDC
- F8EDEE
深色调
- 94444F
- 7E3842
- 682E36
- 54232A
- 40191F
- 2D1014
- 1B070A
- 0B0203
- 010000
灰色调
- A85560
- A45A63
- A16067
- 9D656A
- 996A6E
- 946E72
- 907375
- 8B7779
- 867C7C
配色和谐
互补色 +180°
- AB4F5C
Cherry on Top
- 008180
≈ Belly Flop
类似色 -30° +30°
- AB4F5C
Cherry on Top
- A05183
≈ Purple Zergling
- A95631
≈ Flat Earth
三角配色 +120° +240°
- AB4F5C
Cherry on Top
- 537F2F
≈ Master Chief
- 3873B5
≈ Campanula
分裂互补色 +150° +210°
- AB4F5C
Cherry on Top
- 00855D
≈ Primal Green
- 007D9C
≈ Turkish Tile
四角配色 +90° +180° +270°
- AB4F5C
Cherry on Top
- 7D7300
≈ Sunlit Kelp Green
- 008180
≈ Belly Flop
- 6865B4
≈ Bluish Purple Anemone
对比度与无障碍
Ag
AA白底
WCAG 5.24:1 · APCA Lc 76
Ag
Fail黑底
WCAG 4.00:1 · APCA Lc 26
最佳文字颜色: #FFFFFF
WCAG 5.24:1 (AA) · APCA Lc 76
Contrast pairs
代码片段
CSS
:root {
--cherry-on-top: #ab4f5c;
--cherry-on-top-rgb: 171 79 92;
--cherry-on-top-oklch: oklch(0.547 0.121 13.2);
}
.element {
color: var(--cherry-on-top);
background-color: hsl(352 37% 49%);
border-color: oklch(0.547 0.121 13.2);
}Tailwind CSS v4
@theme {
--color-cherry-on-top: #ab4f5c;
--color-cherry-on-top-50: #ffe8ea;
--color-cherry-on-top-100: #ffd8db;
--color-cherry-on-top-200: #ffc0c3;
--color-cherry-on-top-300: #ef9ea3;
--color-cherry-on-top-400: #dc7f8a;
--color-cherry-on-top-500: #c9606f;
--color-cherry-on-top-600: #aa525e;
--color-cherry-on-top-700: #88424b;
--color-cherry-on-top-800: #652f38;
--color-cherry-on-top-900: #472026;
--color-cherry-on-top-950: #2e0f15;
}SCSS
$cherry-on-top: #ab4f5c;
$cherry-on-top-rgb: 171, 79, 92;
$cherry-on-top-light: mix(#fff, $cherry-on-top, 20%);
$cherry-on-top-dark: mix(#000, $cherry-on-top, 20%);
.element {
color: $cherry-on-top;
box-shadow: 0 0 0 2px rgba($cherry-on-top, 0.35);
}