HSL(51, 72%, 41%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(51,72%,41%)]

Color Conversions

Format Value CSS Usage
HSL hsl(51, 72%, 41%) color: hsl(51, 72%, 41%)
HEX #B49D1D color: #B49D1D
RGB rgb(180, 157, 29) color: rgb(180, 157, 29)
CMYK cmyk(0%, 13%, 84%, 29%)
HSV hsv(51, 84%, 71%)
HWB hwb(51 11% 29%) color: hwb(51 11% 29%)
OKLCH oklch(0.696 0.1366 97.96) color: oklch(0.696 0.1366 97.96)
Lab lab(64.89 -4.11 63.07) color: lab(64.89 -4.11 63.07)
LCH lch(64.89 63.2 93.73) color: lch(64.89 63.2 93.73)

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 2.7:1
vs Black 7.78:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: FAIL ✗ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#AAAA3C — rgb(170, 170, 60)

Deuteranopia (Green-blind)

#ABAD43 — rgb(171, 173, 67)

Tritanopia (Blue-blind)

#B3545A — rgb(179, 84, 90)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(51, 72%, 41%);

text

color: hsl(51, 72%, 41%);

border

border: 2px solid hsl(51, 72%, 41%);

gradient light

background: linear-gradient(to right, hsl(51, 72%, 61%), hsl(51, 72%, 41%));

gradient dark

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

hex

background-color: #B49D1D;

tailwind

bg-[hsl(51,72%,41%)]

box shadow

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

css variable

--color-primary: hsl(51, 72%, 41%);

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, 72%, 41%)?

HEX: #B49D1D | RGB: rgb(180, 157, 29) | CMYK: 0%, 13%, 84%, 29% | HSV: 51°, 84%, 71%. Copy any format from the conversion table above.

What colors go well with #B49D1D?

The complementary color is HSL(231, 72%, 41%). 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, 72%, 41%) in CSS?

As HSL: color: hsl(51, 72%, 41%); — As HEX: color: #B49D1D; — As RGB: color: rgb(180, 157, 29); — Tailwind CSS: bg-[hsl(51,72%,41%)] — CSS variable: --color-primary: hsl(51, 72%, 41%);