最接近的命名颜色 · #902D52
#902D52
最接近的命名颜色: Raspberry Romantic
#902D52(rgb(144 45 82)、hsl(338 52% 37%)、oklch(0.456 0.137 1.2))最接近命名颜色 Raspberry Romantic。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#902D52
oklch(0.456 0.137 1.2)
颜色转换
- HEX
- #902d52
- RGB
- rgb(144 45 82)
- HSL
- hsl(338 52% 37%)
- HWB
- hwb(338 18% 44%)
- OKLCH
- oklch(0.456 0.137 1.2)
- OKLab
- oklab(0.456 0.137 0.003)
- CIE Lab
- lab(35.2 44.46 1.8)
- LCH
- lch(35.2 44.5 2.3)
- CMYK
- cmyk(0% 69% 43% 44%)
浅色调 · 深色调 · 灰色调
浅色调
- 9D4362
- A95872
- B56D82
- C18193
- CC95A4
- D7AAB6
- E2BFC8
- ECD4DA
- F6E9EC
深色调
- 7D2646
- 6A1F3B
- 57182F
- 451125
- 340B1A
- 240611
- 150208
- 070102
- 010000
灰色调
- 903856
- 8F415B
- 8F4A5F
- 8E5264
- 8C5A69
- 8B626D
- 896A72
- 867177
- 83797B
配色和谐
互补色 +180°
- 902D52
Raspberry Romantic
- 00665A
≈ Dancing Dragonfly
类似色 -30° +30°
- 902D52
Raspberry Romantic
- 803479
≈ Veronica Purple
- 943021
≈ Bengara Red
三角配色 +120° +240°
- 902D52
Raspberry Romantic
- 4E5F00
≈ Camouflage Green
- 005D8C
≈ Mamala Bay
分裂互补色 +150° +210°
- 902D52
Raspberry Romantic
- 006931
≈ Universal Green
- 006270
≈ Blue Lagoon
四角配色 +90° +180° +270°
- 902D52
Raspberry Romantic
- 6A5400
≈ Ayahuasca Vine
- 00665A
≈ Dancing Dragonfly
- 3D4EA2
≈ Dazzling Blue
对比度与无障碍
Ag
AAA白底
WCAG 7.82:1 · APCA Lc 86
Ag
Fail黑底
WCAG 2.68:1 · APCA Lc 16
最佳文字颜色: #FFFFFF
WCAG 7.82:1 (AAA) · APCA Lc 86
Contrast pairs
代码片段
CSS
:root {
--raspberry-romantic: #902d52;
--raspberry-romantic-rgb: 144 45 82;
--raspberry-romantic-oklch: oklch(0.456 0.137 1.2);
}
.element {
color: var(--raspberry-romantic);
background-color: hsl(338 52% 37%);
border-color: oklch(0.456 0.137 1.2);
}Tailwind CSS v4
@theme {
--color-raspberry-romantic: #902d52;
--color-raspberry-romantic-50: #ffe6f1;
--color-raspberry-romantic-100: #ffd6e3;
--color-raspberry-romantic-200: #ffbcce;
--color-raspberry-romantic-300: #f299b0;
--color-raspberry-romantic-400: #df7a99;
--color-raspberry-romantic-500: #cc5980;
--color-raspberry-romantic-600: #ad4c6d;
--color-raspberry-romantic-700: #8b3d57;
--color-raspberry-romantic-800: #672b41;
--color-raspberry-romantic-900: #481d2d;
--color-raspberry-romantic-950: #2f0d1a;
}SCSS
$raspberry-romantic: #902d52;
$raspberry-romantic-rgb: 144, 45, 82;
$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);
}