HSL(40, 40%, 50%)

Orange — Orange color

Adjust Color

Color Information

Color Name

Orange

Color Family

Orange

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(40,40%,50%)]

Color Conversions

Format Value CSS Usage
HSL hsl(40, 40%, 50%) color: hsl(40, 40%, 50%)
HEX #B3914D color: #B3914D
RGB rgb(179, 145, 77) color: rgb(179, 145, 77)
CMYK cmyk(0%, 19%, 57%, 30%)
HSV hsv(40, 57%, 70%)
HWB hwb(40 30% 30%) color: hwb(40 30% 30%)
OKLCH oklch(0.6739 0.0959 83.15) color: oklch(0.6739 0.0959 83.15)
Lab lab(61.97 4.55 40.45) color: lab(61.97 4.55 40.45)
LCH lch(61.97 40.71 83.58) color: lch(61.97 40.71 83.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 2.97:1
vs Black 7.07:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: FAIL ✗ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#A4A45D — rgb(164, 164, 93)

Deuteranopia (Green-blind)

#A6A961 — rgb(166, 169, 97)

Tritanopia (Blue-blind)

#B16A6D — rgb(177, 106, 109)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(40, 40%, 50%);

text

color: hsl(40, 40%, 50%);

border

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

gradient light

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

gradient dark

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

hex

background-color: #B3914D;

tailwind

bg-[hsl(40,40%,50%)]

box shadow

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

css variable

--color-primary: hsl(40, 40%, 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(40, 40%, 50%)?

HEX: #B3914D | RGB: rgb(179, 145, 77) | CMYK: 0%, 19%, 57%, 30% | HSV: 40°, 57%, 70%. Copy any format from the conversion table above.

What colors go well with #B3914D?

The complementary color is HSL(220, 40%, 50%). For a triadic harmony, use hues 40°, 160°, and 280°. For analogous combinations, try hues 10° and 70°. See the Color Harmony section above for complete palettes with previews.

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

As HSL: color: hsl(40, 40%, 50%); — As HEX: color: #B3914D; — As RGB: color: rgb(179, 145, 77); — Tailwind CSS: bg-[hsl(40,40%,50%)] — CSS variable: --color-primary: hsl(40, 40%, 50%);