Nearest named color · #42AC87
#42AC87
Nearest named color: Herbal
#42AC87 (rgb(66 172 135), hsl(159 45% 47%), oklch(0.673 0.113 166.7)) is closest to the named color Herbal. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#42AC87
oklch(0.673 0.113 166.7)
Color conversions
- HEX
- #42ac87
- RGB
- rgb(66 172 135)
- HSL
- hsl(159 45% 47%)
- HWB
- hwb(159 26% 33%)
- OKLCH
- oklch(0.673 0.113 166.7)
- OKLab
- oklab(0.673 -0.11 0.026)
- CIE Lab
- lab(63.55 -38.63 9.65)
- LCH
- lch(63.55 39.82 166)
- CMYK
- cmyk(62% 0% 22% 33%)
Tints · Shades · Tones
Tints
- 5AB492
- 6FBD9E
- 82C5AA
- 95CDB6
- A7D6C1
- B9DECE
- CBE6DA
- DCEEE6
- EEF7F2
Shades
- 389575
- 2F7F63
- 256951
- 1C5441
- 144031
- 0B2D21
- 051B13
- 010B06
- 000101
Tones
- 4DA886
- 56A386
- 5D9F85
- 649B84
- 6A9684
- 6F9283
- 748E82
- 788982
- 7C8581
Color harmonies
Complementary +180°
- 42AC87
Herbal
- C879A4
≈ Heartbreaker
Analogous -30° +30°
- 42AC87
Herbal
- 75A65F
≈ Dull Green
- 10ABAD
≈ Fiji
Triadic +120° +240°
- 42AC87
Herbal
- 918BD8
≈ Perrywinkle
- CF7F58
≈ Apricot Brown
Split-complementary +150° +210°
- 42AC87
Herbal
- B280C4
≈ Wisteria
- D2787D
≈ Red Cedar
Tetradic +90° +180° +270°
Contrast & accessibility
Ag
FailOn white
WCAG 2.80:1 · APCA Lc 54
Ag
AAAOn black
WCAG 7.48:1 · APCA Lc 48
Best text color: #000000
WCAG 7.48:1 (AAA) · APCA Lc 48
Contrast pairs
Code snippets
CSS
:root {
--herbal: #42ac87;
--herbal-rgb: 66 172 135;
--herbal-oklch: oklch(0.673 0.113 166.7);
}
.element {
color: var(--herbal);
background-color: hsl(159 45% 47%);
border-color: oklch(0.673 0.113 166.7);
}Tailwind CSS v4
@theme {
--color-herbal: #42ac87;
--color-herbal-50: #d7ffef;
--color-herbal-100: #c4f5e1;
--color-herbal-200: #a5e4cc;
--color-herbal-300: #7acaad;
--color-herbal-400: #52b490;
--color-herbal-500: #139d76;
--color-herbal-600: #178564;
--color-herbal-700: #146b50;
--color-herbal-800: #0f4e38;
--color-herbal-900: #093726;
--color-herbal-950: #002115;
}SCSS
$herbal: #42ac87;
$herbal-rgb: 66, 172, 135;
$herbal-light: mix(#fff, $herbal, 20%);
$herbal-dark: mix(#000, $herbal, 20%);
.element {
color: $herbal;
box-shadow: 0 0 0 2px rgba($herbal, 0.35);
}