最接近的命名颜色 · #4F8251
#4F8251
最接近的命名颜色: Beanpole
#4F8251(rgb(79 130 81)、hsl(122 24% 41%)、oklch(0.557 0.093 145.1))最接近命名颜色 Beanpole。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#4F8251
oklch(0.557 0.093 145.1)
颜色转换
- HEX
- #4f8251
- RGB
- rgb(79 130 81)
- HSL
- hsl(122 24% 41%)
- HWB
- hwb(122 31% 49%)
- OKLCH
- oklch(0.557 0.093 145.1)
- OKLab
- oklab(0.557 -0.076 0.053)
- CIE Lab
- lab(49.79 -25.98 20.97)
- LCH
- lch(49.79 33.39 141.1)
- CMYK
- cmyk(39% 0% 38% 49%)
浅色调 · 深色调 · 灰色调
浅色调
- 608E61
- 719A72
- 83A683
- 94B394
- A5BFA5
- B7CCB7
- C9D8C8
- DAE5DA
- EDF2ED
深色调
- 447045
- 385F3A
- 2E4E2F
- 233E24
- 192F1A
- 102010
- 071207
- 020602
- 000100
灰色调
- 558256
- 5A825B
- 5F8260
- 648265
- 698269
- 6E816E
- 738172
- 778177
- 7C807C
配色和谐
互补色 +180°
- 4F8251
Beanpole
- 8F6092
≈ Chakra
类似色 -30° +30°
- 4F8251
Beanpole
- 727A36
≈ Hot Dog Relish
- 268571
≈ Summer Turquoise
三角配色 +120° +240°
- 4F8251
Beanpole
- 5972AA
≈ Dormitory
- A35D58
≈ Cheek Red
分裂互补色 +150° +210°
- 4F8251
Beanpole
- 7868A4
≈ Reign Over Me
- 9E5C76
≈ Rose Wine
四角配色 +90° +180° +270°
- 4F8251
Beanpole
- 347CA2
≈ Prominent Blue
- 8F6092
≈ Chakra
- 9D643B
≈ Mocha Bisque
对比度与无障碍
Ag
AA白底
WCAG 4.52:1 · APCA Lc 71
Ag
AA黑底
WCAG 4.64:1 · APCA Lc 30
最佳文字颜色: #000000
WCAG 4.64:1 (AA) · APCA Lc 30
Contrast pairs
代码片段
CSS
:root {
--beanpole: #4f8251;
--beanpole-rgb: 79 130 81;
--beanpole-oklch: oklch(0.557 0.093 145.1);
}
.element {
color: var(--beanpole);
background-color: hsl(122 24% 41%);
border-color: oklch(0.557 0.093 145.1);
}Tailwind CSS v4
@theme {
--color-beanpole: #4f8251;
--color-beanpole-50: #e5fde6;
--color-beanpole-100: #d4f1d6;
--color-beanpole-200: #bbe0be;
--color-beanpole-300: #98c59c;
--color-beanpole-400: #7bad7c;
--color-beanpole-500: #5d965f;
--color-beanpole-600: #4f7f51;
--color-beanpole-700: #3f6640;
--color-beanpole-800: #2e4b2d;
--color-beanpole-900: #1f341e;
--color-beanpole-950: #0f1f0e;
}SCSS
$beanpole: #4f8251;
$beanpole-rgb: 79, 130, 81;
$beanpole-light: mix(#fff, $beanpole, 20%);
$beanpole-dark: mix(#000, $beanpole, 20%);
.element {
color: $beanpole;
box-shadow: 0 0 0 2px rgba($beanpole, 0.35);
}