HSL(51, 66%, 21%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(51,66%,21%)]

Color Conversions

Format Value CSS Usage
HSL hsl(51, 66%, 21%) color: hsl(51, 66%, 21%)
HEX #594E12 color: #594E12
RGB rgb(89, 78, 18) color: rgb(89, 78, 18)
CMYK cmyk(0%, 12%, 80%, 65%)
HSV hsv(51, 80%, 35%)
HWB hwb(51 7% 65%) color: hwb(51 7% 65%)
OKLCH oklch(0.4229 0.078 98.43) color: oklch(0.4229 0.078 98.43)
Lab lab(33.17 -2.83 35.03) color: lab(33.17 -2.83 35.03)
LCH lch(33.17 35.14 94.62) color: lch(33.17 35.14 94.62)

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 8.32:1
vs Black 2.52: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)

#545421 — rgb(84, 84, 33)

Deuteranopia (Green-blind)

#555624 — rgb(85, 86, 36)

Tritanopia (Blue-blind)

#582C2F — rgb(88, 44, 47)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(51, 66%, 21%);

text

color: hsl(51, 66%, 21%);

border

border: 2px solid hsl(51, 66%, 21%);

gradient light

background: linear-gradient(to right, hsl(51, 66%, 41%), hsl(51, 66%, 21%));

gradient dark

background: linear-gradient(to right, hsl(51, 66%, 21%), hsl(51, 66%, 1%))

hex

background-color: #594E12;

tailwind

bg-[hsl(51,66%,21%)]

box shadow

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

css variable

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

HEX: #594E12 | RGB: rgb(89, 78, 18) | CMYK: 0%, 12%, 80%, 65% | HSV: 51°, 80%, 35%. Copy any format from the conversion table above.

What colors go well with #594E12?

The complementary color is HSL(231, 66%, 21%). For a triadic harmony, use hues 51°, 171°, and 291°. For analogous combinations, try hues 21° and 81°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(51, 66%, 21%) in CSS?

As HSL: color: hsl(51, 66%, 21%); — As HEX: color: #594E12; — As RGB: color: rgb(89, 78, 18); — Tailwind CSS: bg-[hsl(51,66%,21%)] — CSS variable: --color-primary: hsl(51, 66%, 21%);