Nearest named color · #5F811F
#5F811F
Nearest named color: Enchanted Forest
#5F811F (rgb(95 129 31), hsl(81 61% 31%), oklch(0.558 0.129 127.1)) is closest to the named color Enchanted Forest. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#5F811F
oklch(0.558 0.129 127.1)
Color conversions
- HEX
- #5f811f
- RGB
- rgb(95 129 31)
- HSL
- hsl(81 61% 31%)
- HWB
- hwb(81 12% 49%)
- OKLCH
- oklch(0.558 0.129 127.1)
- OKLab
- oklab(0.558 -0.078 0.103)
- CIE Lab
- lab(49.94 -23.69 45.5)
- LCH
- lch(49.94 51.3 117.5)
- CMYK
- cmyk(26% 0% 76% 49%)
Tints · Shades · Tones
Tints
- 6E8D3B
- 7D9A52
- 8CA668
- 9CB37E
- ACBF93
- BCCCA8
- CCD9BE
- DDE5D3
- EEF2E9
Shades
- 526F19
- 445E14
- 384E0F
- 2C3E0A
- 202E06
- 151F03
- 0A1201
- 030600
- 000100
Tones
- 62812E
- 66813A
- 698145
- 6C814F
- 6F8158
- 738160
- 768168
- 798170
- 7D8078
Color harmonies
Complementary +180°
- 5F811F
Enchanted Forest
- 885DAE
≈ Lusty Lavender
Analogous -30° +30°
- 5F811F
Enchanted Forest
- 877300
≈ Soft Fig
- 0E8A54
≈ Center Field
Triadic +120° +240°
- 5F811F
Enchanted Forest
- 2478BB
≈ Bluish
- B14F67
≈ Extravagant Blush
Split-complementary +150° +210°
- 5F811F
Enchanted Forest
- 626ABE
≈ Bluish Purple Anemone
- A2538F
≈ Purple Zergling
Tetradic +90° +180° +270°
- 5F811F
Enchanted Forest
- 00819A
≈ Decore Splash
- 885DAE
≈ Lusty Lavender
- B25439
≈ Crimson Warrior
Contrast & accessibility
Ag
AAOn white
WCAG 4.51:1 · APCA Lc 71
Ag
AAOn black
WCAG 4.64:1 · APCA Lc 30
Best text color: #000000
WCAG 4.64:1 (AA) · APCA Lc 30
Contrast pairs
Code snippets
CSS
:root {
--enchanted-forest: #5f811f;
--enchanted-forest-rgb: 95 129 31;
--enchanted-forest-oklch: oklch(0.558 0.129 127.1);
}
.element {
color: var(--enchanted-forest);
background-color: hsl(81 61% 31%);
border-color: oklch(0.558 0.129 127.1);
}Tailwind CSS v4
@theme {
--color-enchanted-forest: #5f811f;
--color-enchanted-forest-50: #eafdd6;
--color-enchanted-forest-100: #daf1c4;
--color-enchanted-forest-200: #c3e0a5;
--color-enchanted-forest-300: #a3c57d;
--color-enchanted-forest-400: #8aac54;
--color-enchanted-forest-500: #6f9527;
--color-enchanted-forest-600: #5e7e24;
--color-enchanted-forest-700: #4b651c;
--color-enchanted-forest-800: #384a10;
--color-enchanted-forest-900: #26330a;
--color-enchanted-forest-950: #151f00;
}SCSS
$enchanted-forest: #5f811f;
$enchanted-forest-rgb: 95, 129, 31;
$enchanted-forest-light: mix(#fff, $enchanted-forest, 20%);
$enchanted-forest-dark: mix(#000, $enchanted-forest, 20%);
.element {
color: $enchanted-forest;
box-shadow: 0 0 0 2px rgba($enchanted-forest, 0.35);
}