最接近的命名颜色 · #5B8128
#5B8128
最接近的命名颜色: Enchanted Forest
#5B8128(rgb(91 129 40)、hsl(86 53% 33%)、oklch(0.556 0.125 129.6))最接近命名颜色 Enchanted Forest。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#5B8128
oklch(0.556 0.125 129.6)
颜色转换
- HEX
- #5b8128
- RGB
- rgb(91 129 40)
- HSL
- hsl(86 53% 33%)
- HWB
- hwb(86 16% 49%)
- OKLCH
- oklch(0.556 0.125 129.6)
- OKLab
- oklab(0.556 -0.08 0.096)
- CIE Lab
- lab(49.73 -24.85 41.69)
- LCH
- lch(49.73 48.53 120.8)
- CMYK
- cmyk(29% 0% 69% 49%)
浅色调 · 深色调 · 灰色调
浅色调
- 6A8D41
- 7A9A57
- 8AA66C
- 9AB380
- AABF95
- BACCAA
- CBD9BF
- DCE5D4
- EEF2E9
深色调
- 4E6F21
- 415E1B
- 354E15
- 293E0F
- 1E2E09
- 131F04
- 091202
- 030601
- 000100
灰色调
- 5F8134
- 63813F
- 668149
- 6A8151
- 6E815A
- 718162
- 75816A
- 798171
- 7C8079
配色和谐
互补色 +180°
- 5B8128
Enchanted Forest
- 895CAA
≈ Lusty Lavender
类似色 -30° +30°
- 5B8128
Enchanted Forest
- 847400
≈ Soft Fig
- 078959
≈ Vital Green
三角配色 +120° +240°
- 5B8128
Enchanted Forest
- 2F77B9
≈ Bluish
- AF5063
≈ Kissed by a Zombies
分裂互补色 +150° +210°
- 5B8128
Enchanted Forest
- 6569BA
≈ Bluish Purple Anemone
- A2538B
≈ Purple Zergling
四角配色 +90° +180° +270°
- 5B8128
Enchanted Forest
- 00809C
≈ Amazing Sky
- 895CAA
≈ Lusty Lavender
- AF5637
≈ Brown Rust
对比度与无障碍
Ag
AA白底
WCAG 4.54:1 · APCA Lc 71
Ag
AA黑底
WCAG 4.61:1 · APCA Lc 30
最佳文字颜色: #000000
WCAG 4.61:1 (AA) · APCA Lc 30
Contrast pairs
代码片段
CSS
:root {
--enchanted-forest: #5b8128;
--enchanted-forest-rgb: 91 129 40;
--enchanted-forest-oklch: oklch(0.556 0.125 129.6);
}
.element {
color: var(--enchanted-forest);
background-color: hsl(86 53% 33%);
border-color: oklch(0.556 0.125 129.6);
}Tailwind CSS v4
@theme {
--color-enchanted-forest: #5b8128;
--color-enchanted-forest-50: #e8fdd8;
--color-enchanted-forest-100: #d9f1c6;
--color-enchanted-forest-200: #c1e0a8;
--color-enchanted-forest-300: #a0c581;
--color-enchanted-forest-400: #86ad5b;
--color-enchanted-forest-500: #6b9632;
--color-enchanted-forest-600: #5b7f2c;
--color-enchanted-forest-700: #486523;
--color-enchanted-forest-800: #364a15;
--color-enchanted-forest-900: #25330d;
--color-enchanted-forest-950: #131f02;
}SCSS
$enchanted-forest: #5b8128;
$enchanted-forest-rgb: 91, 129, 40;
$enchanted-forest-light: mix(#fff, $enchanted-forest, 20%);
$enchanted-forest-dark: mix(#000, $enchanted-forest, 20%);
.element {
color: $enchanted-forest;
box-shadow: 0 0 0 2px rgba($enchanted-forest, 0.35);
}