HSL(98, 40%, 34%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(98,40%,34%)]

Color Conversions

Format Value CSS Usage
HSL hsl(98, 40%, 34%) color: hsl(98, 40%, 34%)
HEX #4D7934 color: #4D7934
RGB rgb(77, 121, 52) color: rgb(77, 121, 52)
CMYK cmyk(36%, 0%, 57%, 53%)
HSV hsv(98, 57%, 47%)
HWB hwb(98 20% 53%) color: hwb(98 20% 53%)
OKLCH oklch(0.5274 0.1105 135.54) color: oklch(0.5274 0.1105 135.54)
Lab lab(46.31 -28.54 32.68) color: lab(46.31 -28.54 32.68)
LCH lch(46.31 43.39 131.13) color: lch(46.31 43.39 131.13)

Color Theory

Complementary

Triadic

Analogous

Tetradic (Square)

Split-Complementary

Accessibility (WCAG)

White text on color

Black text on color

Color on white bg

Colored text

Contrast Ratios

vs White 5.12:1
vs Black 4.1:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#606045 — rgb(96, 96, 69)

Deuteranopia (Green-blind)

#5E5A49 — rgb(94, 90, 73)

Tritanopia (Blue-blind)

#4F5255 — rgb(79, 82, 85)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(98, 40%, 34%);

text

color: hsl(98, 40%, 34%);

border

border: 2px solid hsl(98, 40%, 34%);

gradient light

background: linear-gradient(to right, hsl(98, 40%, 54%), hsl(98, 40%, 34%));

gradient dark

background: linear-gradient(to right, hsl(98, 40%, 34%), hsl(98, 40%, 14%))

hex

background-color: #4D7934;

tailwind

bg-[hsl(98,40%,34%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(98, 40%, 34%, 0.4);

css variable

--color-primary: hsl(98, 40%, 34%);

Related Colors

Use Cases for Green

Success states Eco/nature brands Finance apps Health apps Confirm buttons

Frequently Asked Questions

What are all the color codes for HSL(98, 40%, 34%)?

HEX: #4D7934 | RGB: rgb(77, 121, 52) | CMYK: 36%, 0%, 57%, 53% | HSV: 98°, 57%, 47%. Copy any format from the conversion table above.

What colors go well with #4D7934?

The complementary color is HSL(278, 40%, 34%). For a triadic harmony, use hues 98°, 218°, and 338°. For analogous combinations, try hues 68° and 128°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(98, 40%, 34%) in CSS?

As HSL: color: hsl(98, 40%, 34%); — As HEX: color: #4D7934; — As RGB: color: rgb(77, 121, 52); — Tailwind CSS: bg-[hsl(98,40%,34%)] — CSS variable: --color-primary: hsl(98, 40%, 34%);