HSL(50, 60%, 22%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(50,60%,22%)]

Color Conversions

Format Value CSS Usage
HSL hsl(50, 60%, 22%) color: hsl(50, 60%, 22%)
HEX #5A4F16 color: #5A4F16
RGB rgb(90, 79, 22) color: rgb(90, 79, 22)
CMYK cmyk(0%, 12%, 76%, 65%)
HSV hsv(50, 76%, 35%)
HWB hwb(50 8% 65%) color: hwb(50 8% 65%)
OKLCH oklch(0.4268 0.076 98.08) color: oklch(0.4268 0.076 98.08)
Lab lab(33.61 -2.71 33.74) color: lab(33.61 -2.71 33.74)
LCH lch(33.61 33.85 94.59) color: lch(33.61 33.85 94.59)

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.19:1
vs Black 2.56: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)

#555524 — rgb(85, 85, 36)

Deuteranopia (Green-blind)

#565727 — rgb(86, 87, 39)

Tritanopia (Blue-blind)

#592F31 — rgb(89, 47, 49)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(50, 60%, 22%);

text

color: hsl(50, 60%, 22%);

border

border: 2px solid hsl(50, 60%, 22%);

gradient light

background: linear-gradient(to right, hsl(50, 60%, 42%), hsl(50, 60%, 22%));

gradient dark

background: linear-gradient(to right, hsl(50, 60%, 22%), hsl(50, 60%, 2%))

hex

background-color: #5A4F16;

tailwind

bg-[hsl(50,60%,22%)]

box shadow

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

css variable

--color-primary: hsl(50, 60%, 22%);

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(50, 60%, 22%)?

HEX: #5A4F16 | RGB: rgb(90, 79, 22) | CMYK: 0%, 12%, 76%, 65% | HSV: 50°, 76%, 35%. Copy any format from the conversion table above.

What colors go well with #5A4F16?

The complementary color is HSL(230, 60%, 22%). For a triadic harmony, use hues 50°, 170°, and 290°. For analogous combinations, try hues 20° and 80°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(50, 60%, 22%) in CSS?

As HSL: color: hsl(50, 60%, 22%); — As HEX: color: #5A4F16; — As RGB: color: rgb(90, 79, 22); — Tailwind CSS: bg-[hsl(50,60%,22%)] — CSS variable: --color-primary: hsl(50, 60%, 22%);