最接近的命名颜色 · #5A8019
#5A8019
最接近的命名颜色: Enchanted Forest
#5A8019(rgb(90 128 25)、hsl(82 67% 30%)、oklch(0.551 0.134 128.5))最接近命名颜色 Enchanted Forest。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#5A8019
oklch(0.551 0.134 128.5)
颜色转换
- HEX
- #5a8019
- RGB
- rgb(90 128 25)
- HSL
- hsl(82 67% 30%)
- HWB
- hwb(82 10% 50%)
- OKLCH
- oklch(0.551 0.134 128.5)
- OKLab
- oklab(0.551 -0.083 0.105)
- CIE Lab
- lab(49.26 -25.51 46.77)
- LCH
- lch(49.26 53.27 118.6)
- CMYK
- cmyk(30% 0% 80% 50%)
浅色调 · 深色调 · 灰色调
浅色调
- 698C37
- 79994F
- 89A666
- 99B27C
- A9BF91
- BACCA7
- CBD8BD
- DCE5D3
- EDF2E9
深色调
- 4D6E14
- 415D10
- 354D0B
- 293D07
- 1E2E04
- 131F02
- 091201
- 030600
- 000100
灰色调
- 5E802A
- 628137
- 668143
- 69814D
- 6D8156
- 71815F
- 758168
- 788170
- 7C8078
配色和谐
互补色 +180°
- 5A8019
Enchanted Forest
- 8859AD
≈ Lusty Lavender
类似色 -30° +30°
- 5A8019
Enchanted Forest
- 837200
≈ Sunlit Kelp Green
- 008855
≈ Pixel Nature
三角配色 +120° +240°
- 5A8019
Enchanted Forest
- 2176BC
≈ Bluish
- B14B62
≈ Gala Pink
分裂互补色 +150° +210°
- 5A8019
Enchanted Forest
- 6267BE
≈ Bluish Purple Anemone
- A34F8C
≈ La la Lavender
四角配色 +90° +180° +270°
- 5A8019
Enchanted Forest
- 007F99
≈ Amazing Sky
- 8859AD
≈ Lusty Lavender
- B15132
≈ Crimson Warrior
对比度与无障碍
Ag
AA白底
WCAG 4.62:1 · APCA Lc 72
Ag
AA黑底
WCAG 4.53:1 · APCA Lc 30
最佳文字颜色: #FFFFFF
WCAG 4.62:1 (AA) · APCA Lc 72
Contrast pairs
代码片段
CSS
:root {
--enchanted-forest: #5a8019;
--enchanted-forest-rgb: 90 128 25;
--enchanted-forest-oklch: oklch(0.551 0.134 128.5);
}
.element {
color: var(--enchanted-forest);
background-color: hsl(82 67% 30%);
border-color: oklch(0.551 0.134 128.5);
}Tailwind CSS v4
@theme {
--color-enchanted-forest: #5a8019;
--color-enchanted-forest-50: #e8fed6;
--color-enchanted-forest-100: #d9f2c3;
--color-enchanted-forest-200: #c1e0a4;
--color-enchanted-forest-300: #a0c67c;
--color-enchanted-forest-400: #87ad53;
--color-enchanted-forest-500: #6b9624;
--color-enchanted-forest-600: #5b7f21;
--color-enchanted-forest-700: #48661a;
--color-enchanted-forest-800: #364a0e;
--color-enchanted-forest-900: #253409;
--color-enchanted-forest-950: #141f00;
}SCSS
$enchanted-forest: #5a8019;
$enchanted-forest-rgb: 90, 128, 25;
$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);
}