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
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
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
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
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%);