HSL(42, 20%, 50%)

Orange — Orange color

Adjust Color

Color Information

Color Name

Orange

Color Family

Orange

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(42,20%,50%)]

Color Conversions

Format Value CSS Usage
HSL hsl(42, 20%, 50%) color: hsl(42, 20%, 50%)
HEX #998A66 color: #998A66
RGB rgb(153, 138, 102) color: rgb(153, 138, 102)
CMYK cmyk(0%, 10%, 33%, 40%)
HSV hsv(42, 33%, 60%)
HWB hwb(42 40% 40%) color: hwb(42 40% 40%)
OKLCH oklch(0.6376 0.0536 88) color: oklch(0.6376 0.0536 88)
Lab lab(57.95 -0.01 21.37) color: lab(57.95 -0.01 21.37)
LCH lch(57.95 21.37 90.03) color: lch(57.95 21.37 90.03)

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 3.4:1
vs Black 6.18:1

AA Normal (4.5:1)

on White: FAIL ✗ 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)

#93926F — rgb(147, 146, 111)

Deuteranopia (Green-blind)

#939571 — rgb(147, 149, 113)

Tritanopia (Blue-blind)

#987677 — rgb(152, 118, 119)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(42, 20%, 50%);

text

color: hsl(42, 20%, 50%);

border

border: 2px solid hsl(42, 20%, 50%);

gradient light

background: linear-gradient(to right, hsl(42, 20%, 70%), hsl(42, 20%, 50%));

gradient dark

background: linear-gradient(to right, hsl(42, 20%, 50%), hsl(42, 20%, 30%))

hex

background-color: #998A66;

tailwind

bg-[hsl(42,20%,50%)]

box shadow

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

css variable

--color-primary: hsl(42, 20%, 50%);

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, 20%, 50%)?

HEX: #998A66 | RGB: rgb(153, 138, 102) | CMYK: 0%, 10%, 33%, 40% | HSV: 42°, 33%, 60%. Copy any format from the conversion table above.

What colors go well with #998A66?

The complementary color is HSL(222, 20%, 50%). 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, 20%, 50%) in CSS?

As HSL: color: hsl(42, 20%, 50%); — As HEX: color: #998A66; — As RGB: color: rgb(153, 138, 102); — Tailwind CSS: bg-[hsl(42,20%,50%)] — CSS variable: --color-primary: hsl(42, 20%, 50%);