最接近的命名颜色 · #2A7960
#2A7960
最接近的命名颜色: Tropical Rainforest
#2A7960(rgb(42 121 96)、hsl(161 48% 32%)、oklch(0.521 0.087 168.6))最接近命名颜色 Tropical Rainforest。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#2A7960
oklch(0.521 0.087 168.6)
颜色转换
- HEX
- #2a7960
- RGB
- rgb(42 121 96)
- HSL
- hsl(161 48% 32%)
- HWB
- hwb(161 16% 53%)
- OKLCH
- oklch(0.521 0.087 168.6)
- OKLab
- oklab(0.521 -0.085 0.017)
- CIE Lab
- lab(45.54 -29.98 6.34)
- LCH
- lch(45.54 30.64 168.1)
- CMYK
- cmyk(65% 0% 21% 53%)
浅色调 · 深色调 · 灰色调
浅色调
- 43866F
- 59937E
- 6EA08D
- 83AD9C
- 97BBAC
- ACC8BC
- C0D6CD
- D5E3DD
- EAF1EE
深色调
- 236852
- 1C5845
- 164838
- 10392C
- 0A2B20
- 051D15
- 02100A
- 010503
- 000100
灰色调
- 377A63
- 417B66
- 4B7C6A
- 537C6D
- 5C7D70
- 637E73
- 6B7E76
- 727F7A
- 79807D
配色和谐
互补色 +180°
- 2A7960
Tropical Rainforest
- 8E5471
≈ Indian Silk
类似色 -30° +30°
- 2A7960
Tropical Rainforest
- 4F7543
≈ Artichoke Green
- 09787C
≈ Aqua Nation
三角配色 +120° +240°
- 2A7960
Tropical Rainforest
- 676098
≈ Corsican Blue
- 91593A
≈ Chōjicha Brown
分裂互补色 +150° +210°
- 2A7960
Tropical Rainforest
- 7E5889
≈ Purple Mystery
- 955455
≈ Baca Berry
四角配色 +90° +180° +270°
- 2A7960
Tropical Rainforest
- 4A6A9B
≈ Blue Odyssey
- 8E5471
≈ Indian Silk
- 846328
≈ Kumera
对比度与无障碍
Ag
AA白底
WCAG 5.24:1 · APCA Lc 76
Ag
Fail黑底
WCAG 4.00:1 · APCA Lc 26
最佳文字颜色: #FFFFFF
WCAG 5.24:1 (AA) · APCA Lc 76
Contrast pairs
代码片段
CSS
:root {
--tropical-rainforest: #2a7960;
--tropical-rainforest-rgb: 42 121 96;
--tropical-rainforest-oklch: oklch(0.521 0.087 168.6);
}
.element {
color: var(--tropical-rainforest);
background-color: hsl(161 48% 32%);
border-color: oklch(0.521 0.087 168.6);
}Tailwind CSS v4
@theme {
--color-tropical-rainforest: #2a7960;
--color-tropical-rainforest-50: #defef2;
--color-tropical-rainforest-100: #ccf2e4;
--color-tropical-rainforest-200: #b0e1cf;
--color-tropical-rainforest-300: #8ac6b1;
--color-tropical-rainforest-400: #68af95;
--color-tropical-rainforest-500: #42997c;
--color-tropical-rainforest-600: #398169;
--color-tropical-rainforest-700: #2d6754;
--color-tropical-rainforest-800: #204c3c;
--color-tropical-rainforest-900: #153529;
--color-tropical-rainforest-950: #062017;
}SCSS
$tropical-rainforest: #2a7960;
$tropical-rainforest-rgb: 42, 121, 96;
$tropical-rainforest-light: mix(#fff, $tropical-rainforest, 20%);
$tropical-rainforest-dark: mix(#000, $tropical-rainforest, 20%);
.element {
color: $tropical-rainforest;
box-shadow: 0 0 0 2px rgba($tropical-rainforest, 0.35);
}