最接近的命名颜色 · #4F821A
#4F821A
最接近的命名颜色: Enchanted Forest
#4F821A(rgb(79 130 26)、hsl(89 67% 31%)、oklch(0.55 0.142 132.8))最接近命名颜色 Enchanted Forest。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#4F821A
oklch(0.55 0.142 132.8)
颜色转换
- HEX
- #4f821a
- RGB
- rgb(79 130 26)
- HSL
- hsl(89 67% 31%)
- HWB
- hwb(89 10% 49%)
- OKLCH
- oklch(0.55 0.142 132.8)
- OKLab
- oklab(0.55 -0.097 0.104)
- CIE Lab
- lab(49.26 -30.59 46.16)
- LCH
- lch(49.26 55.37 123.5)
- CMYK
- cmyk(39% 0% 80% 49%)
浅色调 · 深色调 · 灰色调
浅色调
- 608E38
- 719B50
- 82A766
- 93B47C
- A4C091
- B6CDA7
- C8D9BD
- DAE6D3
- ECF2E9
深色调
- 447015
- 385F10
- 2E4E0C
- 233E07
- 192F04
- 102002
- 071201
- 020600
- 000100
灰色调
- 54822B
- 5A8238
- 5F8243
- 64824D
- 698256
- 6D825F
- 728268
- 778170
- 7B8178
配色和谐
互补色 +180°
- 4F821A
Enchanted Forest
- 8E55AC
≈ Vicious Violet
类似色 -30° +30°
- 4F821A
Enchanted Forest
- 7F7300
≈ Sunlit Kelp Green
- 00875D
≈ Primal Green
三角配色 +120° +240°
- 4F821A
Enchanted Forest
- 2873C1
≈ Palace Blue
- B5475A
≈ Dark Rose
分裂互补色 +150° +210°
- 4F821A
Enchanted Forest
- 6863C1
≈ Bluish Purple Anemone
- A84B87
≈ Purple Orchid
四角配色 +90° +180° +270°
- 4F821A
Enchanted Forest
- 007E9D
≈ Amazing Sky
- 8E55AC
≈ Vicious Violet
- B35021
≈ Gold Flame
对比度与无障碍
Ag
AA白底
WCAG 4.62:1 · APCA Lc 72
Ag
AA黑底
WCAG 4.54:1 · APCA Lc 30
最佳文字颜色: #FFFFFF
WCAG 4.62:1 (AA) · APCA Lc 72
Contrast pairs
代码片段
CSS
:root {
--enchanted-forest: #4f821a;
--enchanted-forest-rgb: 79 130 26;
--enchanted-forest-oklch: oklch(0.55 0.142 132.8);
}
.element {
color: var(--enchanted-forest);
background-color: hsl(89 67% 31%);
border-color: oklch(0.55 0.142 132.8);
}Tailwind CSS v4
@theme {
--color-enchanted-forest: #4f821a;
--color-enchanted-forest-50: #e4ffd6;
--color-enchanted-forest-100: #d4f3c4;
--color-enchanted-forest-200: #bbe2a5;
--color-enchanted-forest-300: #98c87d;
--color-enchanted-forest-400: #7db054;
--color-enchanted-forest-500: #5f9925;
--color-enchanted-forest-600: #518122;
--color-enchanted-forest-700: #40681b;
--color-enchanted-forest-800: #314c0e;
--color-enchanted-forest-900: #213509;
--color-enchanted-forest-950: #102000;
}SCSS
$enchanted-forest: #4f821a;
$enchanted-forest-rgb: 79, 130, 26;
$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);
}