HSL(58, 40%, 31%)

Yellow — Yellow color

Adjust Color

Color Information

Color Name

Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(58,40%,31%)]

Color Conversions

Format Value CSS Usage
HSL hsl(58, 40%, 31%) color: hsl(58, 40%, 31%)
HEX #6F6D2F color: #6F6D2F
RGB rgb(111, 109, 47) color: rgb(111, 109, 47)
CMYK cmyk(0%, 2%, 58%, 56%)
HSV hsv(58, 58%, 44%)
HWB hwb(58 18% 56%) color: hwb(58 18% 56%)
OKLCH oklch(0.5228 0.0837 107.27) color: oklch(0.5228 0.0837 107.27)
Lab lab(44.97 -8.29 34.32) color: lab(44.97 -8.29 34.32)
LCH lch(44.97 35.31 103.58) color: lch(44.97 35.31 103.58)

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 5.38:1
vs Black 3.9:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#6E6E3E — rgb(110, 110, 62)

Deuteranopia (Green-blind)

#6E6E42 — rgb(110, 110, 66)

Tritanopia (Blue-blind)

#6F4A4C — rgb(111, 74, 76)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(58, 40%, 31%);

text

color: hsl(58, 40%, 31%);

border

border: 2px solid hsl(58, 40%, 31%);

gradient light

background: linear-gradient(to right, hsl(58, 40%, 51%), hsl(58, 40%, 31%));

gradient dark

background: linear-gradient(to right, hsl(58, 40%, 31%), hsl(58, 40%, 11%))

hex

background-color: #6F6D2F;

tailwind

bg-[hsl(58,40%,31%)]

box shadow

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

css variable

--color-primary: hsl(58, 40%, 31%);

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(58, 40%, 31%)?

HEX: #6F6D2F | RGB: rgb(111, 109, 47) | CMYK: 0%, 2%, 58%, 56% | HSV: 58°, 58%, 44%. Copy any format from the conversion table above.

What colors go well with #6F6D2F?

The complementary color is HSL(238, 40%, 31%). For a triadic harmony, use hues 58°, 178°, and 298°. For analogous combinations, try hues 28° and 88°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(58, 40%, 31%) in CSS?

As HSL: color: hsl(58, 40%, 31%); — As HEX: color: #6F6D2F; — As RGB: color: rgb(111, 109, 47); — Tailwind CSS: bg-[hsl(58,40%,31%)] — CSS variable: --color-primary: hsl(58, 40%, 31%);