最接近的命名颜色 · #5A8021
#5A8021
最接近的命名颜色: Enchanted Forest
#5A8021(rgb(90 128 33)、hsl(84 59% 32%)、oklch(0.552 0.129 129.1))最接近命名颜色 Enchanted Forest。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#5A8021
oklch(0.552 0.129 129.1)
颜色转换
- HEX
- #5a8021
- RGB
- rgb(90 128 33)
- HSL
- hsl(84 59% 32%)
- HWB
- hwb(84 13% 50%)
- OKLCH
- oklch(0.552 0.129 129.1)
- OKLab
- oklab(0.552 -0.081 0.1)
- CIE Lab
- lab(49.3 -25.17 44.03)
- LCH
- lch(49.3 50.72 119.8)
- CMYK
- cmyk(30% 0% 74% 50%)
浅色调 · 深色调 · 灰色调
浅色调
- 698C3C
- 799953
- 89A569
- 99B27E
- A9BF93
- BACBA8
- CBD8BE
- DCE5D3
- EDF2E9
深色调
- 4D6E1B
- 415D16
- 354D10
- 293D0B
- 1E2E06
- 131F03
- 091201
- 030600
- 000100
灰色调
- 5E802F
- 62813B
- 668145
- 69814F
- 6D8158
- 718160
- 758168
- 788170
- 7C8078
配色和谐
互补色 +180°
- 5A8021
Enchanted Forest
- 885AAB
≈ Lusty Lavender
类似色 -30° +30°
- 5A8021
Enchanted Forest
- 837200
≈ Sunlit Kelp Green
- 008856
≈ Vital Green
三角配色 +120° +240°
- 5A8021
Enchanted Forest
- 2876BA
≈ Bluish
- AF4D62
≈ Gala Pink
分裂互补色 +150° +210°
- 5A8021
Enchanted Forest
- 6368BC
≈ Bluish Purple Anemone
- A2518B
≈ Purple Zergling
四角配色 +90° +180° +270°
- 5A8021
Enchanted Forest
- 007F9A
≈ Amazing Sky
- 885AAB
≈ Lusty Lavender
- B05334
≈ Red Stage
对比度与无障碍
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: #5a8021;
--enchanted-forest-rgb: 90 128 33;
--enchanted-forest-oklch: oklch(0.552 0.129 129.1);
}
.element {
color: var(--enchanted-forest);
background-color: hsl(84 59% 32%);
border-color: oklch(0.552 0.129 129.1);
}Tailwind CSS v4
@theme {
--color-enchanted-forest: #5a8021;
--color-enchanted-forest-50: #e8fdd7;
--color-enchanted-forest-100: #d9f1c5;
--color-enchanted-forest-200: #c1e0a6;
--color-enchanted-forest-300: #a0c57f;
--color-enchanted-forest-400: #86ad57;
--color-enchanted-forest-500: #6b962c;
--color-enchanted-forest-600: #5b7f27;
--color-enchanted-forest-700: #48661f;
--color-enchanted-forest-800: #364a12;
--color-enchanted-forest-900: #25330b;
--color-enchanted-forest-950: #141f01;
}SCSS
$enchanted-forest: #5a8021;
$enchanted-forest-rgb: 90, 128, 33;
$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);
}