Nearest named color · #5F7158
#5F7158
Nearest named color: Cactus
#5F7158 (rgb(95 113 88), hsl(103 12% 39%), oklch(0.526 0.044 137)) is closest to the named color Cactus. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#5F7158
oklch(0.526 0.044 137)
Color conversions
- HEX
- #5f7158
- RGB
- rgb(95 113 88)
- HSL
- hsl(103 12% 39%)
- HWB
- hwb(103 35% 56%)
- OKLCH
- oklch(0.526 0.044 137)
- OKLab
- oklab(0.526 -0.032 0.03)
- CIE Lab
- lab(45.6 -10.82 11.61)
- LCH
- lch(45.6 15.87 133)
- CMYK
- cmyk(16% 0% 22% 56%)
Tints · Shades · Tones
Tints
- 6E7E67
- 7D8C77
- 8C9A87
- 9CA797
- ACB6A8
- BCC4B9
- CCD2CA
- DDE1DB
- EEF0ED
Shades
- 52614B
- 44523F
- 384333
- 2C3528
- 20271D
- 151A12
- 0A0E09
- 030403
- 000100
Tones
- 62735C
- 667460
- 697664
- 6C7768
- 6F796C
- 737A70
- 767C74
- 797D78
- 7D7F7C
Color harmonies
Complementary +180°
- 5F7158
Cactus
- 75637C
≈ Montana Grape
Analogous -30° +30°
- 5F7158
Cactus
- 6D6D4F
≈ Herbal Whispers
- 527365
≈ Hilltop
Triadic +120° +240°
- 5F7158
Cactus
- 5B6C84
≈ Boundless
- 826162
≈ Aged Beech
Split-complementary +150° +210°
- 5F7158
Cactus
- 696783
≈ Daemonette Hide
- 7E6170
≈ Chicha Morada
Tetradic +90° +180° +270°
Contrast & accessibility
Ag
AAOn white
WCAG 5.26:1 · APCA Lc 76
Ag
FailOn black
WCAG 3.98:1 · APCA Lc 26
Best text color: #FFFFFF
WCAG 5.26:1 (AA) · APCA Lc 76
Contrast pairs
Code snippets
CSS
:root {
--cactus: #5f7158;
--cactus-rgb: 95 113 88;
--cactus-oklch: oklch(0.526 0.044 137);
}
.element {
color: var(--cactus);
background-color: hsl(103 12% 39%);
border-color: oklch(0.526 0.044 137);
}Tailwind CSS v4
@theme {
--color-cactus: #5f7158;
--color-cactus-50: #eff8ec;
--color-cactus-100: #e1ecde;
--color-cactus-200: #cbd9c7;
--color-cactus-300: #acbda8;
--color-cactus-400: #93a58c;
--color-cactus-500: #798d71;
--color-cactus-600: #667860;
--color-cactus-700: #52604c;
--color-cactus-800: #3c4637;
--color-cactus-900: #293025;
--color-cactus-950: #171d14;
}SCSS
$cactus: #5f7158;
$cactus-rgb: 95, 113, 88;
$cactus-light: mix(#fff, $cactus, 20%);
$cactus-dark: mix(#000, $cactus, 20%);
.element {
color: $cactus;
box-shadow: 0 0 0 2px rgba($cactus, 0.35);
}