HSL(21, 45%, 42%)

Orange — Orange color

Adjust Color

Color Information

Color Name

Orange

Color Family

Orange

Warm / Cool

🔴 Warm

Temperature

2000K

CSS Class

bg-[hsl(21,45%,42%)]

Color Conversions

Format Value CSS Usage
HSL hsl(21, 45%, 42%) color: hsl(21, 45%, 42%)
HEX #9B5D3B color: #9B5D3B
RGB rgb(155, 93, 59) color: rgb(155, 93, 59)
CMYK cmyk(0%, 40%, 62%, 39%)
HSV hsv(21, 62%, 61%)
HWB hwb(21 23% 39%) color: hwb(21 23% 39%)
OKLCH oklch(0.5409 0.0945 48.62) color: oklch(0.5409 0.0945 48.62)
Lab lab(45.79 21.97 30.03) color: lab(45.79 21.97 30.03)
LCH lch(45.79 37.21 53.81) color: lch(45.79 37.21 53.81)

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 5.22:1
vs Black 4.02:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#808043 — rgb(128, 128, 67)

Deuteranopia (Green-blind)

#848845 — rgb(132, 136, 69)

Tritanopia (Blue-blind)

#984A4B — rgb(152, 74, 75)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(21, 45%, 42%);

text

color: hsl(21, 45%, 42%);

border

border: 2px solid hsl(21, 45%, 42%);

gradient light

background: linear-gradient(to right, hsl(21, 45%, 62%), hsl(21, 45%, 42%));

gradient dark

background: linear-gradient(to right, hsl(21, 45%, 42%), hsl(21, 45%, 22%))

hex

background-color: #9B5D3B;

tailwind

bg-[hsl(21,45%,42%)]

box shadow

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

css variable

--color-primary: hsl(21, 45%, 42%);

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(21, 45%, 42%)?

HEX: #9B5D3B | RGB: rgb(155, 93, 59) | CMYK: 0%, 40%, 62%, 39% | HSV: 21°, 62%, 61%. Copy any format from the conversion table above.

What colors go well with #9B5D3B?

The complementary color is HSL(201, 45%, 42%). For a triadic harmony, use hues 21°, 141°, and 261°. For analogous combinations, try hues 351° and 51°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(21, 45%, 42%) in CSS?

As HSL: color: hsl(21, 45%, 42%); — As HEX: color: #9B5D3B; — As RGB: color: rgb(155, 93, 59); — Tailwind CSS: bg-[hsl(21,45%,42%)] — CSS variable: --color-primary: hsl(21, 45%, 42%);