Nearest named color · #008042
#008042
Nearest named color: Pharmaceutical Green
#008042 (rgb(0 128 66), hsl(151 100% 25%), oklch(0.526 0.136 152.8)) is closest to the named color Pharmaceutical Green. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#008042
oklch(0.526 0.136 152.8)
Color conversions
- HEX
- #008042
- RGB
- rgb(0 128 66)
- HSL
- hsl(151 100% 25%)
- HWB
- hwb(151 0% 50%)
- OKLCH
- oklch(0.526 0.136 152.8)
- OKLab
- oklab(0.526 -0.121 0.062)
- CIE Lab
- lab(46.72 -42.75 24.72)
- LCH
- lch(46.72 49.38 150)
- CMYK
- cmyk(100% 0% 48% 50%)
Tints · Shades · Tones
Tints
- 318D54
- 4D9966
- 65A678
- 7BB28B
- 91BF9E
- A7CCB1
- BDD8C4
- D3E5D7
- E9F2EB
Shades
- 006E38
- 005D2F
- 004D25
- 003D1C
- 002E14
- 001F0B
- 001205
- 000601
- 000100
Tones
- 228049
- 33814F
- 408156
- 4C815C
- 568162
- 5F8168
- 68816E
- 708174
- 78807A
Color harmonies
Complementary +180°
- 008042
Pharmaceutical Green
- 97488C
≈ Hyacinth Violet
Analogous -30° +30°
- 008042
Pharmaceutical Green
- 5D7600
≈ Topiary Green
- 007C6F
≈ Blue Green
Triadic +120° +240°
- 008042
Pharmaceutical Green
- 5262B8
≈ Chinese Bellflower
- AB4733
≈ Rambutan
Split-complementary +150° +210°
- 008042
Pharmaceutical Green
- 7B54AA
≈ Royal Lavender
- A74363
≈ Rouge Like
Tetradic +90° +180° +270°
- 008042
Pharmaceutical Green
- 0071AD
≈ Cloisonné
- 97488C
≈ Hyacinth Violet
- 9A5800
≈ Sepia Wash
Contrast & accessibility
Ag
AAOn white
WCAG 5.04:1 · APCA Lc 74
Ag
FailOn black
WCAG 4.16:1 · APCA Lc 28
Best text color: #FFFFFF
WCAG 5.04:1 (AA) · APCA Lc 74
Contrast pairs
Code snippets
CSS
:root {
--pharmaceutical-green: #008042;
--pharmaceutical-green-rgb: 0 128 66;
--pharmaceutical-green-oklch: oklch(0.526 0.136 152.8);
}
.element {
color: var(--pharmaceutical-green);
background-color: hsl(151 100% 25%);
border-color: oklch(0.526 0.136 152.8);
}Tailwind CSS v4
@theme {
--color-pharmaceutical-green: #008042;
--color-pharmaceutical-green-50: #d8ffe4;
--color-pharmaceutical-green-100: #c5f6d4;
--color-pharmaceutical-green-200: #a6e6bb;
--color-pharmaceutical-green-300: #7ccc99;
--color-pharmaceutical-green-400: #56b577;
--color-pharmaceutical-green-500: #219f58;
--color-pharmaceutical-green-600: #20864b;
--color-pharmaceutical-green-700: #1a6c3c;
--color-pharmaceutical-green-800: #154f28;
--color-pharmaceutical-green-900: #0d371b;
--color-pharmaceutical-green-950: #01220b;
}SCSS
$pharmaceutical-green: #008042;
$pharmaceutical-green-rgb: 0, 128, 66;
$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);
}