HSL(25, 40%, 18%)

Orange — Orange color

Adjust Color

Color Information

Color Name

Orange

Color Family

Orange

Warm / Cool

🔴 Warm

Temperature

2000K

CSS Class

bg-[hsl(25,40%,18%)]

Color Conversions

Format Value CSS Usage
HSL hsl(25, 40%, 18%) color: hsl(25, 40%, 18%)
HEX #402B1C color: #402B1C
RGB rgb(64, 43, 28) color: rgb(64, 43, 28)
CMYK cmyk(0%, 33%, 56%, 75%)
HSV hsv(25, 56%, 25%)
HWB hwb(25 11% 75%) color: hwb(25 11% 75%)
OKLCH oklch(0.3101 0.04 56.19) color: oklch(0.3101 0.04 56.19)
Lab lab(19.65 7.6 13.62) color: lab(19.65 7.6 13.62)
LCH lch(19.65 15.6 60.84) color: lch(19.65 15.6 60.84)

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 13.29:1
vs Black 1.58: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)

#373720 — rgb(55, 55, 32)

Deuteranopia (Green-blind)

#383A21 — rgb(56, 58, 33)

Tritanopia (Blue-blind)

#3F2223 — rgb(63, 34, 35)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(25, 40%, 18%);

text

color: hsl(25, 40%, 18%);

border

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

gradient light

background: linear-gradient(to right, hsl(25, 40%, 38%), hsl(25, 40%, 18%));

gradient dark

background: linear-gradient(to right, hsl(25, 40%, 18%), hsl(25, 40%, 0%))

hex

background-color: #402B1C;

tailwind

bg-[hsl(25,40%,18%)]

box shadow

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

css variable

--color-primary: hsl(25, 40%, 18%);

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(25, 40%, 18%)?

HEX: #402B1C | RGB: rgb(64, 43, 28) | CMYK: 0%, 33%, 56%, 75% | HSV: 25°, 56%, 25%. Copy any format from the conversion table above.

What colors go well with #402B1C?

The complementary color is HSL(205, 40%, 18%). For a triadic harmony, use hues 25°, 145°, and 265°. For analogous combinations, try hues 355° and 55°. See the Color Harmony section above for complete palettes with previews.

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

As HSL: color: hsl(25, 40%, 18%); — As HEX: color: #402B1C; — As RGB: color: rgb(64, 43, 28); — Tailwind CSS: bg-[hsl(25,40%,18%)] — CSS variable: --color-primary: hsl(25, 40%, 18%);