HSL(62, 22%, 52%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔵 Cool

Temperature

3500K

CSS Class

bg-[hsl(62,22%,52%)]

Color Conversions

Format Value CSS Usage
HSL hsl(62, 22%, 52%) color: hsl(62, 22%, 52%)
HEX #9EA06A color: #9EA06A
RGB rgb(158, 160, 106) color: rgb(158, 160, 106)
CMYK cmyk(1%, 0%, 34%, 37%)
HSV hsv(62, 34%, 63%)
HWB hwb(62 42% 37%) color: hwb(62 42% 37%)
OKLCH oklch(0.6909 0.0737 109.98) color: oklch(0.6909 0.0737 109.98)
Lab lab(64.53 -9.43 27.97) color: lab(64.53 -9.43 27.97)
LCH lch(64.53 29.52 108.63) color: lch(64.53 29.52 108.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 2.73:1
vs Black 7.69:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: FAIL ✗ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#9F9F77 — rgb(159, 159, 119)

Deuteranopia (Green-blind)

#9F9F7A — rgb(159, 159, 122)

Tritanopia (Blue-blind)

#9E8184 — rgb(158, 129, 132)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(62, 22%, 52%);

text

color: hsl(62, 22%, 52%);

border

border: 2px solid hsl(62, 22%, 52%);

gradient light

background: linear-gradient(to right, hsl(62, 22%, 72%), hsl(62, 22%, 52%));

gradient dark

background: linear-gradient(to right, hsl(62, 22%, 52%), hsl(62, 22%, 32%))

hex

background-color: #9EA06A;

tailwind

bg-[hsl(62,22%,52%)]

box shadow

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

css variable

--color-primary: hsl(62, 22%, 52%);

Related Colors

Use Cases for Yellow

Warnings Highlights Attention indicators Optimistic brands Note/sticky elements

Frequently Asked Questions

What are all the color codes for HSL(62, 22%, 52%)?

HEX: #9EA06A | RGB: rgb(158, 160, 106) | CMYK: 1%, 0%, 34%, 37% | HSV: 62°, 34%, 63%. Copy any format from the conversion table above.

What colors go well with #9EA06A?

The complementary color is HSL(242, 22%, 52%). For a triadic harmony, use hues 62°, 182°, and 302°. For analogous combinations, try hues 32° and 92°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(62, 22%, 52%) in CSS?

As HSL: color: hsl(62, 22%, 52%); — As HEX: color: #9EA06A; — As RGB: color: rgb(158, 160, 106); — Tailwind CSS: bg-[hsl(62,22%,52%)] — CSS variable: --color-primary: hsl(62, 22%, 52%);