HSL(52, 72%, 21%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

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

Color Conversions

Format Value CSS Usage
HSL hsl(52, 72%, 21%) color: hsl(52, 72%, 21%)
HEX #5C520F color: #5C520F
RGB rgb(92, 82, 15) color: rgb(92, 82, 15)
CMYK cmyk(0%, 11%, 84%, 64%)
HSV hsv(52, 84%, 36%)
HWB hwb(52 6% 64%) color: hwb(52 6% 64%)
OKLCH oklch(0.4357 0.0835 100.29) color: oklch(0.4357 0.0835 100.29)
Lab lab(34.69 -3.87 37.74) color: lab(34.69 -3.87 37.74)
LCH lch(34.69 37.94 95.85) color: lch(34.69 37.94 95.85)

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.87: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)

#58581F — rgb(88, 88, 31)

Deuteranopia (Green-blind)

#585923 — rgb(88, 89, 35)

Tritanopia (Blue-blind)

#5C2C2F — rgb(92, 44, 47)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

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

text

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

border

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

gradient light

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

gradient dark

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

hex

background-color: #5C520F;

tailwind

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

box shadow

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

css variable

--color-primary: hsl(52, 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(52, 72%, 21%)?

HEX: #5C520F | RGB: rgb(92, 82, 15) | CMYK: 0%, 11%, 84%, 64% | HSV: 52°, 84%, 36%. Copy any format from the conversion table above.

What colors go well with #5C520F?

The complementary color is HSL(232, 72%, 21%). For a triadic harmony, use hues 52°, 172°, and 292°. For analogous combinations, try hues 22° and 82°. See the Color Harmony section above for complete palettes with previews.

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

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