HSL(40, 50%, 40%)
Orange — Orange color
Adjust Color
Color Information
Color Name
Orange
Color Family
Orange
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(40,50%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(40, 50%, 40%) | color: hsl(40, 50%, 40%) | |
| HEX | #997733 | color: #997733 | |
| RGB | rgb(153, 119, 51) | color: rgb(153, 119, 51) | |
| CMYK | cmyk(0%, 22%, 67%, 40%) | — | |
| HSV | hsv(40, 67%, 60%) | — | |
| HWB | hwb(40 20% 40%) | color: hwb(40 20% 40%) | |
| OKLCH | oklch(0.5889 0.0954 82.22) | color: oklch(0.5889 0.0954 82.22) | |
| Lab | lab(52.07 5.63 41.42) | color: lab(52.07 5.63 41.42) | |
| LCH | lch(52.07 41.8 82.26) | color: lch(52.07 41.8 82.26) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#8A8A43 — rgb(138, 138, 67)
Deuteranopia (Green-blind)
#8C8F47 — rgb(140, 143, 71)
Tritanopia (Blue-blind)
#975053 — rgb(151, 80, 83)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(40, 50%, 40%);
text
color: hsl(40, 50%, 40%);
border
border: 2px solid hsl(40, 50%, 40%);
gradient light
background: linear-gradient(to right, hsl(40, 50%, 60%), hsl(40, 50%, 40%));
gradient dark
background: linear-gradient(to right, hsl(40, 50%, 40%), hsl(40, 50%, 20%))
hex
background-color: #997733;
tailwind
bg-[hsl(40,50%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(40, 50%, 40%, 0.4);
css variable
--color-primary: hsl(40, 50%, 40%);
Related Colors
Use Cases for Orange
Frequently Asked Questions
What are all the color codes for HSL(40, 50%, 40%)?
HEX: #997733 | RGB: rgb(153, 119, 51) | CMYK: 0%, 22%, 67%, 40% | HSV: 40°, 67%, 60%. Copy any format from the conversion table above.
What colors go well with #997733?
The complementary color is HSL(220, 50%, 40%). 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, 50%, 40%) in CSS?
As HSL: color: hsl(40, 50%, 40%); — As HEX: color: #997733; — As RGB: color: rgb(153, 119, 51); — Tailwind CSS: bg-[hsl(40,50%,40%)] — CSS variable: --color-primary: hsl(40, 50%, 40%);