最接近的命名颜色 · #5A8228
#5A8228
最接近的命名颜色: Enchanted Forest
#5A8228(rgb(90 130 40)、hsl(87 53% 33%)、oklch(0.558 0.127 130.3))最接近命名颜色 Enchanted Forest。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#5A8228
oklch(0.558 0.127 130.3)
颜色转换
- HEX
- #5a8228
- RGB
- rgb(90 130 40)
- HSL
- hsl(87 53% 33%)
- HWB
- hwb(87 16% 49%)
- OKLCH
- oklch(0.558 0.127 130.3)
- OKLab
- oklab(0.558 -0.082 0.097)
- CIE Lab
- lab(49.99 -25.7 41.92)
- LCH
- lch(49.99 49.17 121.5)
- CMYK
- cmyk(31% 0% 69% 49%)
浅色调 · 深色调 · 灰色调
浅色调
- 698E41
- 799B57
- 89A76C
- 99B381
- AAC095
- BACCAA
- CBD9BF
- DCE6D4
- EDF2E9
深色调
- 4D7021
- 415F1B
- 354E15
- 293E0F
- 1E2F09
- 132004
- 091202
- 030601
- 000100
灰色调
- 5E8235
- 62823F
- 668249
- 6A8252
- 6D825A
- 718262
- 75816A
- 798171
- 7C8179
配色和谐
互补色 +180°
- 5A8228
Enchanted Forest
- 8B5CAB
≈ Lusty Lavender
类似色 -30° +30°
- 5A8228
Enchanted Forest
- 847500
≈ Soft Fig
- 008A5A
≈ Vital Green
三角配色 +120° +240°
- 5A8228
Enchanted Forest
- 3077BB
≈ Bluish
- B15062
≈ Kissed by a Zombies
分裂互补色 +150° +210°
- 5A8228
Enchanted Forest
- 6769BC
≈ Bluish Purple Anemone
- A4538B
≈ Purple Zergling
四角配色 +90° +180° +270°
- 5A8228
Enchanted Forest
- 00819D
≈ Decore Splash
- 8B5CAB
≈ 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: #5a8228;
--enchanted-forest-rgb: 90 130 40;
--enchanted-forest-oklch: oklch(0.558 0.127 130.3);
}
.element {
color: var(--enchanted-forest);
background-color: hsl(87 53% 33%);
border-color: oklch(0.558 0.127 130.3);
}Tailwind CSS v4
@theme {
--color-enchanted-forest: #5a8228;
--color-enchanted-forest-50: #e8fed8;
--color-enchanted-forest-100: #d8f2c6;
--color-enchanted-forest-200: #c0e0a8;
--color-enchanted-forest-300: #9fc581;
--color-enchanted-forest-400: #85ad5a;
--color-enchanted-forest-500: #699631;
--color-enchanted-forest-600: #597f2b;
--color-enchanted-forest-700: #476622;
--color-enchanted-forest-800: #354a15;
--color-enchanted-forest-900: #24340d;
--color-enchanted-forest-950: #131f02;
}SCSS
$enchanted-forest: #5a8228;
$enchanted-forest-rgb: 90, 130, 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);
}