最接近的命名颜色 · #2A862D
#2A862D
最接近的命名颜色: Asian Spice
#2A862D(rgb(42 134 45)、hsl(122 52% 35%)、oklch(0.547 0.152 143.6))最接近命名颜色 Asian Spice。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#2A862D
oklch(0.547 0.152 143.6)
颜色转换
- HEX
- #2a862d
- RGB
- rgb(42 134 45)
- HSL
- hsl(122 52% 35%)
- HWB
- hwb(122 16% 47%)
- OKLCH
- oklch(0.547 0.152 143.6)
- OKLab
- oklab(0.547 -0.123 0.09)
- CIE Lab
- lab(49.21 -41.81 38.19)
- LCH
- lch(49.21 56.62 137.6)
- CMYK
- cmyk(69% 0% 66% 47%)
浅色调 · 深色调 · 灰色调
浅色调
- 449244
- 5A9E59
- 70AA6E
- 84B682
- 99C296
- ADCFAB
- C1DBC0
- D6E7D5
- EAF3EA
深色调
- 237426
- 1C621F
- 165118
- 104011
- 0A300B
- 052106
- 021302
- 010601
- 000100
灰色调
- 378638
- 428642
- 4C854B
- 558553
- 5D845B
- 648463
- 6C836A
- 738272
- 798179
配色和谐
互补色 +180°
- 2A862D
Asian Spice
- 9A4CA2
≈ Purpureus
类似色 -30° +30°
- 2A862D
Asian Spice
- 717800
≈ Portuguese Green
- 00846B
≈ Viridis
三角配色 +120° +240°
- 2A862D
Asian Spice
- 406BC8
≈ Han Blue
- B94343
≈ Snakebite
分裂互补色 +150° +210°
- 2A862D
Asian Spice
- 775BC0
≈ Fuchsia Blue
- B04377
≈ Mystic Maroon
四角配色 +90° +180° +270°
- 2A862D
Asian Spice
- 007AA8
≈ Quiet Cove
- 9A4CA2
≈ Purpureus
- AC5500
≈ Tijolo
对比度与无障碍
Ag
AA白底
WCAG 4.61:1 · APCA Lc 72
Ag
AA黑底
WCAG 4.54:1 · APCA Lc 30
最佳文字颜色: #FFFFFF
WCAG 4.61:1 (AA) · APCA Lc 72
Contrast pairs
代码片段
CSS
:root {
--asian-spice: #2a862d;
--asian-spice-rgb: 42 134 45;
--asian-spice-oklch: oklch(0.547 0.152 143.6);
}
.element {
color: var(--asian-spice);
background-color: hsl(122 52% 35%);
border-color: oklch(0.547 0.152 143.6);
}Tailwind CSS v4
@theme {
--color-asian-spice: #2a862d;
--color-asian-spice-50: #daffdb;
--color-asian-spice-100: #c8f6ca;
--color-asian-spice-200: #abe6ad;
--color-asian-spice-300: #83cc87;
--color-asian-spice-400: #62b560;
--color-asian-spice-500: #389f3b;
--color-asian-spice-600: #318633;
--color-asian-spice-700: #276b28;
--color-asian-spice-800: #1e4f19;
--color-asian-spice-900: #143710;
--color-asian-spice-950: #052103;
}SCSS
$asian-spice: #2a862d;
$asian-spice-rgb: 42, 134, 45;
$asian-spice-light: mix(#fff, $asian-spice, 20%);
$asian-spice-dark: mix(#000, $asian-spice, 20%);
.element {
color: $asian-spice;
box-shadow: 0 0 0 2px rgba($asian-spice, 0.35);
}