HSL(90, 40%, 25%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(90,40%,25%)]

Color Conversions

Format Value CSS Usage
HSL hsl(90, 40%, 25%) color: hsl(90, 40%, 25%)
HEX #405926 color: #405926
RGB rgb(64, 89, 38) color: rgb(64, 89, 38)
CMYK cmyk(28%, 0%, 57%, 65%)
HSV hsv(89, 57%, 35%)
HWB hwb(89 15% 65%) color: hwb(89 15% 65%)
OKLCH oklch(0.4309 0.0821 130.79) color: oklch(0.4309 0.0821 130.79)
Lab lab(34.75 -19.27 26.22) color: lab(34.75 -19.27 26.22)
LCH lch(34.75 32.54 126.31) color: lch(34.75 32.54 126.31)

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 7.85:1
vs Black 2.67:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: FAIL ✗

AAA Normal (7:1)

on White: PASS ✓

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#4B4B32 — rgb(75, 75, 50)

Deuteranopia (Green-blind)

#494835 — rgb(73, 72, 53)

Tritanopia (Blue-blind)

#413C3E — rgb(65, 60, 62)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(90, 40%, 25%);

text

color: hsl(90, 40%, 25%);

border

border: 2px solid hsl(90, 40%, 25%);

gradient light

background: linear-gradient(to right, hsl(90, 40%, 45%), hsl(90, 40%, 25%));

gradient dark

background: linear-gradient(to right, hsl(90, 40%, 25%), hsl(90, 40%, 5%))

hex

background-color: #405926;

tailwind

bg-[hsl(90,40%,25%)]

box shadow

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

css variable

--color-primary: hsl(90, 40%, 25%);

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(90, 40%, 25%)?

HEX: #405926 | RGB: rgb(64, 89, 38) | CMYK: 28%, 0%, 57%, 65% | HSV: 89°, 57%, 35%. Copy any format from the conversion table above.

What colors go well with #405926?

The complementary color is HSL(270, 40%, 25%). For a triadic harmony, use hues 90°, 210°, and 330°. For analogous combinations, try hues 60° and 120°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(90, 40%, 25%) in CSS?

As HSL: color: hsl(90, 40%, 25%); — As HEX: color: #405926; — As RGB: color: rgb(64, 89, 38); — Tailwind CSS: bg-[hsl(90,40%,25%)] — CSS variable: --color-primary: hsl(90, 40%, 25%);