HSL(138, 20%, 38%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(138,20%,38%)]

Color Conversions

Format Value CSS Usage
HSL hsl(138, 20%, 38%) color: hsl(138, 20%, 38%)
HEX #4E7459 color: #4E7459
RGB rgb(78, 116, 89) color: rgb(78, 116, 89)
CMYK cmyk(33%, 0%, 23%, 55%)
HSV hsv(137, 33%, 45%)
HWB hwb(137 30% 55%) color: hwb(137 30% 55%)
OKLCH oklch(0.5223 0.0606 153.03) color: oklch(0.5223 0.0606 153.03)
Lab lab(45.4 -19.61 10.72) color: lab(45.4 -19.61 10.72)
LCH lch(45.4 22.35 151.34) color: lch(45.4 22.35 151.34)

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.29:1
vs Black 3.97: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)

#5E5F60 — rgb(94, 95, 96)

Deuteranopia (Green-blind)

#5C5961 — rgb(92, 89, 97)

Tritanopia (Blue-blind)

#506566 — rgb(80, 101, 102)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(138, 20%, 38%);

text

color: hsl(138, 20%, 38%);

border

border: 2px solid hsl(138, 20%, 38%);

gradient light

background: linear-gradient(to right, hsl(138, 20%, 58%), hsl(138, 20%, 38%));

gradient dark

background: linear-gradient(to right, hsl(138, 20%, 38%), hsl(138, 20%, 18%))

hex

background-color: #4E7459;

tailwind

bg-[hsl(138,20%,38%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(138, 20%, 38%, 0.4);

css variable

--color-primary: hsl(138, 20%, 38%);

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(138, 20%, 38%)?

HEX: #4E7459 | RGB: rgb(78, 116, 89) | CMYK: 33%, 0%, 23%, 55% | HSV: 137°, 33%, 45%. Copy any format from the conversion table above.

What colors go well with #4E7459?

The complementary color is HSL(318, 20%, 38%). For a triadic harmony, use hues 138°, 258°, and 18°. For analogous combinations, try hues 108° and 168°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(138, 20%, 38%) in CSS?

As HSL: color: hsl(138, 20%, 38%); — As HEX: color: #4E7459; — As RGB: color: rgb(78, 116, 89); — Tailwind CSS: bg-[hsl(138,20%,38%)] — CSS variable: --color-primary: hsl(138, 20%, 38%);