HSL(42, 74%, 34%)

Orange — Orange color

Adjust Color

Color Information

Color Name

Orange

Color Family

Orange

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(42,74%,34%)]

Color Conversions

Format Value CSS Usage
HSL hsl(42, 74%, 34%) color: hsl(42, 74%, 34%)
HEX #977017 color: #977017
RGB rgb(151, 112, 23) color: rgb(151, 112, 23)
CMYK cmyk(0%, 26%, 85%, 41%)
HSV hsv(42, 85%, 59%)
HWB hwb(42 9% 41%) color: hwb(42 9% 41%)
OKLCH oklch(0.5697 0.1098 82.36) color: oklch(0.5697 0.1098 82.36)
Lab lab(49.78 7.36 50.77) color: lab(49.78 7.36 50.77)
LCH lch(49.78 51.3 81.75) color: lch(49.78 51.3 81.75)

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 4.52:1
vs Black 4.65:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: PASS ✓

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#86862D — rgb(134, 134, 45)

Deuteranopia (Green-blind)

#888B32 — rgb(136, 139, 50)

Tritanopia (Blue-blind)

#953E41 — rgb(149, 62, 65)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(42, 74%, 34%);

text

color: hsl(42, 74%, 34%);

border

border: 2px solid hsl(42, 74%, 34%);

gradient light

background: linear-gradient(to right, hsl(42, 74%, 54%), hsl(42, 74%, 34%));

gradient dark

background: linear-gradient(to right, hsl(42, 74%, 34%), hsl(42, 74%, 14%))

hex

background-color: #977017;

tailwind

bg-[hsl(42,74%,34%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(42, 74%, 34%, 0.4);

css variable

--color-primary: hsl(42, 74%, 34%);

Related Colors

Use Cases for Orange

E-commerce CTAs Food & beverage branding Energetic UI elements Sale tags Sunset themes

Frequently Asked Questions

What are all the color codes for HSL(42, 74%, 34%)?

HEX: #977017 | RGB: rgb(151, 112, 23) | CMYK: 0%, 26%, 85%, 41% | HSV: 42°, 85%, 59%. Copy any format from the conversion table above.

What colors go well with #977017?

The complementary color is HSL(222, 74%, 34%). For a triadic harmony, use hues 42°, 162°, and 282°. For analogous combinations, try hues 12° and 72°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(42, 74%, 34%) in CSS?

As HSL: color: hsl(42, 74%, 34%); — As HEX: color: #977017; — As RGB: color: rgb(151, 112, 23); — Tailwind CSS: bg-[hsl(42,74%,34%)] — CSS variable: --color-primary: hsl(42, 74%, 34%);