HSL(50, 80%, 33%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(50,80%,33%)]

Color Conversions

Format Value CSS Usage
HSL hsl(50, 80%, 33%) color: hsl(50, 80%, 33%)
HEX #978111 color: #978111
RGB rgb(151, 129, 17) color: rgb(151, 129, 17)
CMYK cmyk(0%, 15%, 89%, 41%)
HSV hsv(50, 89%, 59%)
HWB hwb(50 6% 41%) color: hwb(50 6% 41%)
OKLCH oklch(0.6058 0.1204 96.51) color: oklch(0.6058 0.1204 96.51)
Lab lab(54.37 -2.41 56.26) color: lab(54.37 -2.41 56.26)
LCH lch(54.37 56.31 92.45) color: lch(54.37 56.31 92.45)

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 3.84:1
vs Black 5.46:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#8D8D2C — rgb(141, 141, 44)

Deuteranopia (Green-blind)

#8F9033 — rgb(143, 144, 51)

Tritanopia (Blue-blind)

#964146 — rgb(150, 65, 70)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(50, 80%, 33%);

text

color: hsl(50, 80%, 33%);

border

border: 2px solid hsl(50, 80%, 33%);

gradient light

background: linear-gradient(to right, hsl(50, 80%, 53%), hsl(50, 80%, 33%));

gradient dark

background: linear-gradient(to right, hsl(50, 80%, 33%), hsl(50, 80%, 13%))

hex

background-color: #978111;

tailwind

bg-[hsl(50,80%,33%)]

box shadow

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

css variable

--color-primary: hsl(50, 80%, 33%);

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, 80%, 33%)?

HEX: #978111 | RGB: rgb(151, 129, 17) | CMYK: 0%, 15%, 89%, 41% | HSV: 50°, 89%, 59%. Copy any format from the conversion table above.

What colors go well with #978111?

The complementary color is HSL(230, 80%, 33%). 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, 80%, 33%) in CSS?

As HSL: color: hsl(50, 80%, 33%); — As HEX: color: #978111; — As RGB: color: rgb(151, 129, 17); — Tailwind CSS: bg-[hsl(50,80%,33%)] — CSS variable: --color-primary: hsl(50, 80%, 33%);