HSL(138, 22%, 40%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(138,22%,40%)]

Color Conversions

Format Value CSS Usage
HSL hsl(138, 22%, 40%) color: hsl(138, 22%, 40%)
HEX #507C5D color: #507C5D
RGB rgb(80, 124, 93) color: rgb(80, 124, 93)
CMYK cmyk(35%, 0%, 25%, 51%)
HSV hsv(138, 35%, 49%)
HWB hwb(138 32% 51%) color: hwb(138 32% 51%)
OKLCH oklch(0.5451 0.0688 152.99) color: oklch(0.5451 0.0688 152.99)
Lab lab(48.15 -22.29 12.22) color: lab(48.15 -22.29 12.22)
LCH lch(48.15 25.42 151.27) color: lch(48.15 25.42 151.27)

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 4.79:1
vs Black 4.38: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)

#636365 — rgb(99, 99, 101)

Deuteranopia (Green-blind)

#615D66 — rgb(97, 93, 102)

Tritanopia (Blue-blind)

#526A6C — rgb(82, 106, 108)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(138, 22%, 40%);

text

color: hsl(138, 22%, 40%);

border

border: 2px solid hsl(138, 22%, 40%);

gradient light

background: linear-gradient(to right, hsl(138, 22%, 60%), hsl(138, 22%, 40%));

gradient dark

background: linear-gradient(to right, hsl(138, 22%, 40%), hsl(138, 22%, 20%))

hex

background-color: #507C5D;

tailwind

bg-[hsl(138,22%,40%)]

box shadow

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

css variable

--color-primary: hsl(138, 22%, 40%);

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, 22%, 40%)?

HEX: #507C5D | RGB: rgb(80, 124, 93) | CMYK: 35%, 0%, 25%, 51% | HSV: 138°, 35%, 49%. Copy any format from the conversion table above.

What colors go well with #507C5D?

The complementary color is HSL(318, 22%, 40%). 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, 22%, 40%) in CSS?

As HSL: color: hsl(138, 22%, 40%); — As HEX: color: #507C5D; — As RGB: color: rgb(80, 124, 93); — Tailwind CSS: bg-[hsl(138,22%,40%)] — CSS variable: --color-primary: hsl(138, 22%, 40%);