HSL(57, 18%, 22%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

N/A

CSS Class

bg-[hsl(57,18%,22%)]

Color Conversions

Format Value CSS Usage
HSL hsl(57, 18%, 22%) color: hsl(57, 18%, 22%)
HEX #42412E color: #42412E
RGB rgb(66, 65, 46) color: rgb(66, 65, 46)
CMYK cmyk(0%, 2%, 30%, 74%)
HSV hsv(57, 30%, 26%)
HWB hwb(57 18% 74%) color: hwb(57 18% 74%)
OKLCH oklch(0.3706 0.0308 105.28) color: oklch(0.3706 0.0308 105.28)
Lab lab(27.12 -3.25 11.79) color: lab(27.12 -3.25 11.79)
LCH lch(27.12 12.23 105.41) color: lch(27.12 12.23 105.41)

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 10.36:1
vs Black 2.03: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)

#424233 — rgb(66, 66, 51)

Deuteranopia (Green-blind)

#424234 — rgb(66, 66, 52)

Tritanopia (Blue-blind)

#423637 — rgb(66, 54, 55)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(57, 18%, 22%);

text

color: hsl(57, 18%, 22%);

border

border: 2px solid hsl(57, 18%, 22%);

gradient light

background: linear-gradient(to right, hsl(57, 18%, 42%), hsl(57, 18%, 22%));

gradient dark

background: linear-gradient(to right, hsl(57, 18%, 22%), hsl(57, 18%, 2%))

hex

background-color: #42412E;

tailwind

bg-[hsl(57,18%,22%)]

box shadow

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

css variable

--color-primary: hsl(57, 18%, 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(57, 18%, 22%)?

HEX: #42412E | RGB: rgb(66, 65, 46) | CMYK: 0%, 2%, 30%, 74% | HSV: 57°, 30%, 26%. Copy any format from the conversion table above.

What colors go well with #42412E?

The complementary color is HSL(237, 18%, 22%). For a triadic harmony, use hues 57°, 177°, and 297°. For analogous combinations, try hues 27° and 87°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(57, 18%, 22%) in CSS?

As HSL: color: hsl(57, 18%, 22%); — As HEX: color: #42412E; — As RGB: color: rgb(66, 65, 46); — Tailwind CSS: bg-[hsl(57,18%,22%)] — CSS variable: --color-primary: hsl(57, 18%, 22%);