HSL(48, 40%, 16%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(48,40%,16%)]

Color Conversions

Format Value CSS Usage
HSL hsl(48, 40%, 16%) color: hsl(48, 40%, 16%)
HEX #393318 color: #393318
RGB rgb(57, 51, 24) color: rgb(57, 51, 24)
CMYK cmyk(0%, 11%, 58%, 78%)
HSV hsv(49, 58%, 22%)
HWB hwb(49 9% 78%) color: hwb(49 9% 78%)
OKLCH oklch(0.3203 0.0432 97.12) color: oklch(0.3203 0.0432 97.12)
Lab lab(21.22 -1.79 17.98) color: lab(21.22 -1.79 17.98)
LCH lch(21.22 18.07 95.69) color: lch(21.22 18.07 95.69)

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 12.65:1
vs Black 1.66: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)

#36361F — rgb(54, 54, 31)

Deuteranopia (Green-blind)

#373720 — rgb(55, 55, 32)

Tritanopia (Blue-blind)

#392425 — rgb(57, 36, 37)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(48, 40%, 16%);

text

color: hsl(48, 40%, 16%);

border

border: 2px solid hsl(48, 40%, 16%);

gradient light

background: linear-gradient(to right, hsl(48, 40%, 36%), hsl(48, 40%, 16%));

gradient dark

background: linear-gradient(to right, hsl(48, 40%, 16%), hsl(48, 40%, 0%))

hex

background-color: #393318;

tailwind

bg-[hsl(48,40%,16%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(48, 40%, 16%, 0.4);

css variable

--color-primary: hsl(48, 40%, 16%);

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(48, 40%, 16%)?

HEX: #393318 | RGB: rgb(57, 51, 24) | CMYK: 0%, 11%, 58%, 78% | HSV: 49°, 58%, 22%. Copy any format from the conversion table above.

What colors go well with #393318?

The complementary color is HSL(228, 40%, 16%). For a triadic harmony, use hues 48°, 168°, and 288°. For analogous combinations, try hues 18° and 78°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(48, 40%, 16%) in CSS?

As HSL: color: hsl(48, 40%, 16%); — As HEX: color: #393318; — As RGB: color: rgb(57, 51, 24); — Tailwind CSS: bg-[hsl(48,40%,16%)] — CSS variable: --color-primary: hsl(48, 40%, 16%);