HSL(40, 30%, 27%)

Orange — Orange color

Adjust Color

Color Information

Color Name

Orange

Color Family

Orange

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(40,30%,27%)]

Color Conversions

Format Value CSS Usage
HSL hsl(40, 30%, 27%) color: hsl(40, 30%, 27%)
HEX #5A4C30 color: #5A4C30
RGB rgb(90, 76, 48) color: rgb(90, 76, 48)
CMYK cmyk(0%, 16%, 47%, 65%)
HSV hsv(40, 47%, 35%)
HWB hwb(40 19% 65%) color: hwb(40 19% 65%)
OKLCH oklch(0.4234 0.0463 84.01) color: oklch(0.4234 0.0463 84.01)
Lab lab(33.04 1.49 18.81) color: lab(33.04 1.49 18.81)
LCH lch(33.04 18.87 85.47) color: lch(33.04 18.87 85.47)

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 8.36:1
vs Black 2.51: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)

#545437 — rgb(84, 84, 55)

Deuteranopia (Green-blind)

#555638 — rgb(85, 86, 56)

Tritanopia (Blue-blind)

#593C3D — rgb(89, 60, 61)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(40, 30%, 27%);

text

color: hsl(40, 30%, 27%);

border

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

gradient light

background: linear-gradient(to right, hsl(40, 30%, 47%), hsl(40, 30%, 27%));

gradient dark

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

hex

background-color: #5A4C30;

tailwind

bg-[hsl(40,30%,27%)]

box shadow

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

css variable

--color-primary: hsl(40, 30%, 27%);

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, 30%, 27%)?

HEX: #5A4C30 | RGB: rgb(90, 76, 48) | CMYK: 0%, 16%, 47%, 65% | HSV: 40°, 47%, 35%. Copy any format from the conversion table above.

What colors go well with #5A4C30?

The complementary color is HSL(220, 30%, 27%). 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, 30%, 27%) in CSS?

As HSL: color: hsl(40, 30%, 27%); — As HEX: color: #5A4C30; — As RGB: color: rgb(90, 76, 48); — Tailwind CSS: bg-[hsl(40,30%,27%)] — CSS variable: --color-primary: hsl(40, 30%, 27%);