HSL(102, 31%, 23%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(102,31%,23%)]

Color Conversions

Format Value CSS Usage
HSL hsl(102, 31%, 23%) color: hsl(102, 31%, 23%)
HEX #334D28 color: #334D28
RGB rgb(51, 77, 40) color: rgb(51, 77, 40)
CMYK cmyk(34%, 0%, 48%, 70%)
HSV hsv(102, 48%, 30%)
HWB hwb(102 16% 70%) color: hwb(102 16% 70%)
OKLCH oklch(0.3888 0.0674 136.94) color: oklch(0.3888 0.0674 136.94)
Lab lab(29.82 -17.96 18.84) color: lab(29.82 -17.96 18.84)
LCH lch(29.82 26.03 133.63) color: lch(29.82 26.03 133.63)

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 9.4:1
vs Black 2.23: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)

#3E3E31 — rgb(62, 62, 49)

Deuteranopia (Green-blind)

#3D3B33 — rgb(61, 59, 51)

Tritanopia (Blue-blind)

#34383A — rgb(52, 56, 58)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(102, 31%, 23%);

text

color: hsl(102, 31%, 23%);

border

border: 2px solid hsl(102, 31%, 23%);

gradient light

background: linear-gradient(to right, hsl(102, 31%, 43%), hsl(102, 31%, 23%));

gradient dark

background: linear-gradient(to right, hsl(102, 31%, 23%), hsl(102, 31%, 3%))

hex

background-color: #334D28;

tailwind

bg-[hsl(102,31%,23%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(102, 31%, 23%, 0.4);

css variable

--color-primary: hsl(102, 31%, 23%);

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(102, 31%, 23%)?

HEX: #334D28 | RGB: rgb(51, 77, 40) | CMYK: 34%, 0%, 48%, 70% | HSV: 102°, 48%, 30%. Copy any format from the conversion table above.

What colors go well with #334D28?

The complementary color is HSL(282, 31%, 23%). For a triadic harmony, use hues 102°, 222°, and 342°. For analogous combinations, try hues 72° and 132°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(102, 31%, 23%) in CSS?

As HSL: color: hsl(102, 31%, 23%); — As HEX: color: #334D28; — As RGB: color: rgb(51, 77, 40); — Tailwind CSS: bg-[hsl(102,31%,23%)] — CSS variable: --color-primary: hsl(102, 31%, 23%);