HSL(57, 72%, 21%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(57,72%,21%)]

Color Conversions

Format Value CSS Usage
HSL hsl(57, 72%, 21%) color: hsl(57, 72%, 21%)
HEX #5C580F color: #5C580F
RGB rgb(92, 88, 15) color: rgb(92, 88, 15)
CMYK cmyk(0%, 4%, 84%, 64%)
HSV hsv(57, 84%, 36%)
HWB hwb(57 6% 64%) color: hwb(57 6% 64%)
OKLCH oklch(0.4504 0.0893 106.18) color: oklch(0.4504 0.0893 106.18)
Lab lab(36.54 -7.42 39.4) color: lab(36.54 -7.42 39.4)
LCH lch(36.54 40.09 100.67) color: lch(36.54 40.09 100.67)

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.35:1
vs Black 2.86: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)

#5A5A21 — rgb(90, 90, 33)

Deuteranopia (Green-blind)

#5B5B25 — rgb(91, 91, 37)

Tritanopia (Blue-blind)

#5C2F32 — rgb(92, 47, 50)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(57, 72%, 21%);

text

color: hsl(57, 72%, 21%);

border

border: 2px solid hsl(57, 72%, 21%);

gradient light

background: linear-gradient(to right, hsl(57, 72%, 41%), hsl(57, 72%, 21%));

gradient dark

background: linear-gradient(to right, hsl(57, 72%, 21%), hsl(57, 72%, 1%))

hex

background-color: #5C580F;

tailwind

bg-[hsl(57,72%,21%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(57, 72%, 21%, 0.4);

css variable

--color-primary: hsl(57, 72%, 21%);

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(57, 72%, 21%)?

HEX: #5C580F | RGB: rgb(92, 88, 15) | CMYK: 0%, 4%, 84%, 64% | HSV: 57°, 84%, 36%. Copy any format from the conversion table above.

What colors go well with #5C580F?

The complementary color is HSL(237, 72%, 21%). For a triadic harmony, use hues 57°, 177°, and 297°. For analogous combinations, try hues 27° and 87°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(57, 72%, 21%) in CSS?

As HSL: color: hsl(57, 72%, 21%); — As HEX: color: #5C580F; — As RGB: color: rgb(92, 88, 15); — Tailwind CSS: bg-[hsl(57,72%,21%)] — CSS variable: --color-primary: hsl(57, 72%, 21%);