HSL(62, 20%, 15%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔵 Cool

Temperature

3500K

CSS Class

bg-[hsl(62,20%,15%)]

Color Conversions

Format Value CSS Usage
HSL hsl(62, 20%, 15%) color: hsl(62, 20%, 15%)
HEX #2D2E1F color: #2D2E1F
RGB rgb(45, 46, 31) color: rgb(45, 46, 31)
CMYK cmyk(2%, 0%, 33%, 82%)
HSV hsv(64, 33%, 18%)
HWB hwb(64 12% 82%) color: hwb(64 12% 82%)
OKLCH oklch(0.2954 0.0258 111.06) color: oklch(0.2954 0.0258 111.06)
Lab lab(18.41 -3.57 9.56) color: lab(18.41 -3.57 9.56)
LCH lch(18.41 10.2 110.48) color: lch(18.41 10.2 110.48)

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 13.8:1
vs Black 1.52: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)

#2D2D23 — rgb(45, 45, 35)

Deuteranopia (Green-blind)

#2D2D24 — rgb(45, 45, 36)

Tritanopia (Blue-blind)

#2D2526 — rgb(45, 37, 38)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(62, 20%, 15%);

text

color: hsl(62, 20%, 15%);

border

border: 2px solid hsl(62, 20%, 15%);

gradient light

background: linear-gradient(to right, hsl(62, 20%, 35%), hsl(62, 20%, 15%));

gradient dark

background: linear-gradient(to right, hsl(62, 20%, 15%), hsl(62, 20%, 0%))

hex

background-color: #2D2E1F;

tailwind

bg-[hsl(62,20%,15%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(62, 20%, 15%, 0.4);

css variable

--color-primary: hsl(62, 20%, 15%);

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(62, 20%, 15%)?

HEX: #2D2E1F | RGB: rgb(45, 46, 31) | CMYK: 2%, 0%, 33%, 82% | HSV: 64°, 33%, 18%. Copy any format from the conversion table above.

What colors go well with #2D2E1F?

The complementary color is HSL(242, 20%, 15%). For a triadic harmony, use hues 62°, 182°, and 302°. For analogous combinations, try hues 32° and 92°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(62, 20%, 15%) in CSS?

As HSL: color: hsl(62, 20%, 15%); — As HEX: color: #2D2E1F; — As RGB: color: rgb(45, 46, 31); — Tailwind CSS: bg-[hsl(62,20%,15%)] — CSS variable: --color-primary: hsl(62, 20%, 15%);