最接近的命名颜色 · #8E2B4D
#8E2B4D
最接近的命名颜色: Raspberry Romantic
#8E2B4D(rgb(142 43 77)、hsl(339 54% 36%)、oklch(0.449 0.136 3.4))最接近命名颜色 Raspberry Romantic。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#8E2B4D
oklch(0.449 0.136 3.4)
颜色转换
- HEX
- #8e2b4d
- RGB
- rgb(142 43 77)
- HSL
- hsl(339 54% 36%)
- HWB
- hwb(339 17% 44%)
- OKLCH
- oklch(0.449 0.136 3.4)
- OKLab
- oklab(0.449 0.136 0.008)
- CIE Lab
- lab(34.4 44.23 3.83)
- LCH
- lch(34.4 44.4 4.9)
- CMYK
- cmyk(0% 70% 46% 44%)
浅色调 · 深色调 · 灰色调
浅色调
- 9B425D
- A8576D
- B46B7E
- C08090
- CB95A1
- D6A9B3
- E1BEC6
- EBD4D9
- F5E9EC
深色调
- 7B2442
- 681D37
- 56162C
- 441022
- 340A18
- 24050F
- 150207
- 070102
- 010000
灰色调
- 8E3652
- 8E4057
- 8D495C
- 8D5161
- 8C5966
- 8A616B
- 886970
- 867175
- 83787B
配色和谐
互补色 +180°
- 8E2B4D
Raspberry Romantic
- 006359
≈ Dancing Peacock
类似色 -30° +30°
- 8E2B4D
Raspberry Romantic
- 7F3274
≈ Veronica Purple
- 912F1B
≈ Bengala Red
三角配色 +120° +240°
- 8E2B4D
Raspberry Romantic
- 495E00
≈ Camouflage Green
- 005A8C
≈ Buccaneer Blue
分裂互补色 +150° +210°
- 8E2B4D
Raspberry Romantic
- 006635
≈ Treasured Wilderness
- 00606F
≈ Cool Dive
四角配色 +90° +180° +270°
- 8E2B4D
Raspberry Romantic
- 665300
≈ Olive Brown
- 006359
≈ Dancing Peacock
- 3F4B9F
≈ Dazzling Blue
对比度与无障碍
Ag
AAA白底
WCAG 8.06:1 · APCA Lc 87
Ag
Fail黑底
WCAG 2.60:1 · APCA Lc 15
最佳文字颜色: #FFFFFF
WCAG 8.06:1 (AAA) · APCA Lc 87
Contrast pairs
代码片段
CSS
:root {
--raspberry-romantic: #8e2b4d;
--raspberry-romantic-rgb: 142 43 77;
--raspberry-romantic-oklch: oklch(0.449 0.136 3.4);
}
.element {
color: var(--raspberry-romantic);
background-color: hsl(339 54% 36%);
border-color: oklch(0.449 0.136 3.4);
}Tailwind CSS v4
@theme {
--color-raspberry-romantic: #8e2b4d;
--color-raspberry-romantic-50: #ffe6ef;
--color-raspberry-romantic-100: #ffd6e1;
--color-raspberry-romantic-200: #ffbccc;
--color-raspberry-romantic-300: #f39aad;
--color-raspberry-romantic-400: #e07a96;
--color-raspberry-romantic-500: #cd5a7d;
--color-raspberry-romantic-600: #ad4d6a;
--color-raspberry-romantic-700: #8b3d54;
--color-raspberry-romantic-800: #672b3f;
--color-raspberry-romantic-900: #481d2b;
--color-raspberry-romantic-950: #2f0d19;
}SCSS
$raspberry-romantic: #8e2b4d;
$raspberry-romantic-rgb: 142, 43, 77;
$raspberry-romantic-light: mix(#fff, $raspberry-romantic, 20%);
$raspberry-romantic-dark: mix(#000, $raspberry-romantic, 20%);
.element {
color: $raspberry-romantic;
box-shadow: 0 0 0 2px rgba($raspberry-romantic, 0.35);
}