最接近的命名颜色 · #287B3B
#287B3B
最接近的命名颜色: Pharmaceutical Green
#287B3B(rgb(40 123 59)、hsl(134 51% 32%)、oklch(0.517 0.126 147.8))最接近命名颜色 Pharmaceutical Green。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#287B3B
oklch(0.517 0.126 147.8)
颜色转换
- HEX
- #287b3b
- RGB
- rgb(40 123 59)
- HSL
- hsl(134 51% 32%)
- HWB
- hwb(134 16% 52%)
- OKLCH
- oklch(0.517 0.126 147.8)
- OKLab
- oklab(0.517 -0.107 0.067)
- CIE Lab
- lab(45.55 -36.99 27.17)
- LCH
- lch(45.55 45.89 143.7)
- CMYK
- cmyk(67% 0% 52% 52%)
浅色调 · 深色调 · 灰色调
浅色调
- 41884E
- 589561
- 6DA274
- 82AF87
- 96BC9A
- ABC9AE
- C0D7C2
- D5E4D6
- EAF1EA
深色调
- 216A32
- 1B5A29
- 154A21
- 0F3A19
- 092C11
- 041E09
- 021004
- 010501
- 000100
灰色调
- 357C43
- 407D4A
- 497D51
- 527E58
- 5B7E5F
- 637F66
- 6A7F6C
- 728073
- 79807A
配色和谐
互补色 +180°
- 287B3B
Pharmaceutical Green
- 8E4B8D
≈ Cosmic Berry
类似色 -30° +30°
- 287B3B
Pharmaceutical Green
- 637000
≈ Brownish Green
- 007A68
≈ Ultramarine Green
三角配色 +120° +240°
- 287B3B
Pharmaceutical Green
- 4963B0
≈ Kakitsubata Blue
- A4473D
≈ Rusty Sword
分裂互补色 +150° +210°
- 287B3B
Pharmaceutical Green
- 7255A6
≈ Prophet Violet
- 9F4468
≈ Ancient Fuchsia
四角配色 +90° +180° +270°
- 287B3B
Pharmaceutical Green
- 0070A1
≈ Cat’s Purr
- 8E4B8D
≈ Cosmic Berry
- 9B5200
≈ Charlie Brown
对比度与无障碍
Ag
AA白底
WCAG 5.26:1 · APCA Lc 76
Ag
Fail黑底
WCAG 3.98:1 · APCA Lc 26
最佳文字颜色: #FFFFFF
WCAG 5.26:1 (AA) · APCA Lc 76
Contrast pairs
代码片段
CSS
:root {
--pharmaceutical-green: #287b3b;
--pharmaceutical-green-rgb: 40 123 59;
--pharmaceutical-green-oklch: oklch(0.517 0.126 147.8);
}
.element {
color: var(--pharmaceutical-green);
background-color: hsl(134 51% 32%);
border-color: oklch(0.517 0.126 147.8);
}Tailwind CSS v4
@theme {
--color-pharmaceutical-green: #287b3b;
--color-pharmaceutical-green-50: #ddffe2;
--color-pharmaceutical-green-100: #cbf4d2;
--color-pharmaceutical-green-200: #aee4b8;
--color-pharmaceutical-green-300: #88ca95;
--color-pharmaceutical-green-400: #67b373;
--color-pharmaceutical-green-500: #419c53;
--color-pharmaceutical-green-600: #388447;
--color-pharmaceutical-green-700: #2d6a38;
--color-pharmaceutical-green-800: #214e26;
--color-pharmaceutical-green-900: #163619;
--color-pharmaceutical-green-950: #07210a;
}SCSS
$pharmaceutical-green: #287b3b;
$pharmaceutical-green-rgb: 40, 123, 59;
$pharmaceutical-green-light: mix(#fff, $pharmaceutical-green, 20%);
$pharmaceutical-green-dark: mix(#000, $pharmaceutical-green, 20%);
.element {
color: $pharmaceutical-green;
box-shadow: 0 0 0 2px rgba($pharmaceutical-green, 0.35);
}