最接近的命名颜色 · #5A8229
#5A8229
最接近的命名颜色: Enchanted Forest
#5A8229(rgb(90 130 41)、hsl(87 52% 34%)、oklch(0.558 0.126 130.4))最接近命名颜色 Enchanted Forest。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#5A8229
oklch(0.558 0.126 130.4)
颜色转换
- HEX
- #5a8229
- RGB
- rgb(90 130 41)
- HSL
- hsl(87 52% 34%)
- HWB
- hwb(87 16% 49%)
- OKLCH
- oklch(0.558 0.126 130.4)
- OKLab
- oklab(0.558 -0.082 0.096)
- CIE Lab
- lab(49.99 -25.64 41.51)
- LCH
- lch(49.99 48.79 121.7)
- CMYK
- cmyk(31% 0% 68% 49%)
浅色调 · 深色调 · 灰色调
浅色调
- 698E41
- 799B57
- 89A76C
- 99B381
- AAC096
- BACCAA
- CBD9BF
- DCE6D4
- EDF2E9
深色调
- 4D7022
- 415F1C
- 354E15
- 293E0F
- 1E2F09
- 132005
- 091202
- 030601
- 000100
灰色调
- 5E8235
- 628240
- 668249
- 6A8252
- 6D825A
- 718262
- 75816A
- 798171
- 7C8179
配色和谐
互补色 +180°
- 5A8229
Enchanted Forest
- 8B5CAA
≈ Lusty Lavender
类似色 -30° +30°
- 5A8229
Enchanted Forest
- 847500
≈ Soft Fig
- 008A5A
≈ Vital Green
三角配色 +120° +240°
- 5A8229
Enchanted Forest
- 3177BA
≈ Bluish
- B05062
≈ Kissed by a Zombies
分裂互补色 +150° +210°
- 5A8229
Enchanted Forest
- 6769BC
≈ Bluish Purple Anemone
- A3538A
≈ Purple Zergling
四角配色 +90° +180° +270°
- 5A8229
Enchanted Forest
- 00819D
≈ Decore Splash
- 8B5CAA
≈ Lusty Lavender
- B05635
≈ Brown Rust
对比度与无障碍
Ag
AA白底
WCAG 4.50:1 · APCA Lc 71
Ag
AA黑底
WCAG 4.65:1 · APCA Lc 31
最佳文字颜色: #000000
WCAG 4.65:1 (AA) · APCA Lc 31
Contrast pairs
代码片段
CSS
:root {
--enchanted-forest: #5a8229;
--enchanted-forest-rgb: 90 130 41;
--enchanted-forest-oklch: oklch(0.558 0.126 130.4);
}
.element {
color: var(--enchanted-forest);
background-color: hsl(87 52% 34%);
border-color: oklch(0.558 0.126 130.4);
}Tailwind CSS v4
@theme {
--color-enchanted-forest: #5a8229;
--color-enchanted-forest-50: #e8fdd9;
--color-enchanted-forest-100: #d8f1c6;
--color-enchanted-forest-200: #c0e0a9;
--color-enchanted-forest-300: #9fc582;
--color-enchanted-forest-400: #85ad5b;
--color-enchanted-forest-500: #699632;
--color-enchanted-forest-600: #597f2c;
--color-enchanted-forest-700: #476623;
--color-enchanted-forest-800: #354a15;
--color-enchanted-forest-900: #24340e;
--color-enchanted-forest-950: #131f02;
}SCSS
$enchanted-forest: #5a8229;
$enchanted-forest-rgb: 90, 130, 41;
$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);
}