Nearest named color · #5B821B
#5B821B
Nearest named color: Enchanted Forest
#5B821B (rgb(91 130 27), hsl(83 66% 31%), oklch(0.557 0.135 128.7)) is closest to the named color Enchanted Forest. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#5B821B
oklch(0.557 0.135 128.7)
Color conversions
- HEX
- #5b821b
- RGB
- rgb(91 130 27)
- HSL
- hsl(83 66% 31%)
- HWB
- hwb(83 11% 49%)
- OKLCH
- oklch(0.557 0.135 128.7)
- OKLab
- oklab(0.557 -0.084 0.105)
- CIE Lab
- lab(49.97 -25.93 46.8)
- LCH
- lch(49.97 53.5 119)
- CMYK
- cmyk(30% 0% 79% 49%)
Tints · Shades · Tones
Tints
- 6A8E39
- 7A9B51
- 8AA767
- 9AB37D
- AAC092
- BACCA7
- CBD9BD
- DCE6D3
- EEF2E9
Shades
- 4E7016
- 415F11
- 354E0C
- 293E08
- 1E2F05
- 132002
- 091201
- 030600
- 000100
Tones
- 5F822C
- 638239
- 668244
- 6A824D
- 6E8257
- 718260
- 758168
- 798170
- 7C8178
Color harmonies
Complementary +180°
- 5B821B
Enchanted Forest
- 8A5BAF
≈ Lusty Lavender
Analogous -30° +30°
- 5B821B
Enchanted Forest
- 857400
≈ Soft Fig
- 008A57
≈ Center Field
Triadic +120° +240°
- 5B821B
Enchanted Forest
- 2377BE
≈ Bluish
- B34D63
≈ Gala Pink
Split-complementary +150° +210°
- 5B821B
Enchanted Forest
- 6469C1
≈ Bluish Purple Anemone
- A5508E
≈ Plum Dust
Tetradic +90° +180° +270°
- 5B821B
Enchanted Forest
- 00819B
≈ Decore Splash
- 8A5BAF
≈ Lusty Lavender
- B45332
≈ Renga Brick
Contrast & accessibility
Ag
AAOn white
WCAG 4.51:1 · APCA Lc 71
Ag
AAOn black
WCAG 4.65:1 · APCA Lc 31
Best text color: #000000
WCAG 4.65:1 (AA) · APCA Lc 31
Contrast pairs
Code snippets
CSS
:root {
--enchanted-forest: #5b821b;
--enchanted-forest-rgb: 91 130 27;
--enchanted-forest-oklch: oklch(0.557 0.135 128.7);
}
.element {
color: var(--enchanted-forest);
background-color: hsl(83 66% 31%);
border-color: oklch(0.557 0.135 128.7);
}Tailwind CSS v4
@theme {
--color-enchanted-forest: #5b821b;
--color-enchanted-forest-50: #e8fed6;
--color-enchanted-forest-100: #d9f2c3;
--color-enchanted-forest-200: #c0e1a4;
--color-enchanted-forest-300: #9fc67c;
--color-enchanted-forest-400: #86ae52;
--color-enchanted-forest-500: #6a9623;
--color-enchanted-forest-600: #5a7f21;
--color-enchanted-forest-700: #48661a;
--color-enchanted-forest-800: #364a0e;
--color-enchanted-forest-900: #253408;
--color-enchanted-forest-950: #131f00;
}SCSS
$enchanted-forest: #5b821b;
$enchanted-forest-rgb: 91, 130, 27;
$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);
}