HSL(50, 51%, 21%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

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

Color Conversions

Format Value CSS Usage
HSL hsl(50, 51%, 21%) color: hsl(50, 51%, 21%)
HEX #51481A color: #51481A
RGB rgb(81, 72, 26) color: rgb(81, 72, 26)
CMYK cmyk(0%, 11%, 68%, 68%)
HSV hsv(50, 68%, 32%)
HWB hwb(50 10% 68%) color: hwb(50 10% 68%)
OKLCH oklch(0.4003 0.0654 98.26) color: oklch(0.4003 0.0654 98.26)
Lab lab(30.54 -2.67 28.25) color: lab(30.54 -2.67 28.25)
LCH lch(30.54 28.38 95.4) color: lch(30.54 28.38 95.4)

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 9.16:1
vs Black 2.29: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)

#4D4D25 — rgb(77, 77, 37)

Deuteranopia (Green-blind)

#4E4E28 — rgb(78, 78, 40)

Tritanopia (Blue-blind)

#512E30 — rgb(81, 46, 48)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

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

text

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

border

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

gradient light

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

gradient dark

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

hex

background-color: #51481A;

tailwind

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

box shadow

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

css variable

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

HEX: #51481A | RGB: rgb(81, 72, 26) | CMYK: 0%, 11%, 68%, 68% | HSV: 50°, 68%, 32%. Copy any format from the conversion table above.

What colors go well with #51481A?

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

As HSL: color: hsl(50, 51%, 21%); — As HEX: color: #51481A; — As RGB: color: rgb(81, 72, 26); — Tailwind CSS: bg-[hsl(50,51%,21%)] — CSS variable: --color-primary: hsl(50, 51%, 21%);