HSL(40, 40%, 50%)
Orange — Orange color
Adjust Color
Color Information
Color Name
Orange
Color Family
Orange
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(40,40%,50%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(40, 40%, 50%) | color: hsl(40, 40%, 50%) | |
| HEX | #B3914D | color: #B3914D | |
| RGB | rgb(179, 145, 77) | color: rgb(179, 145, 77) | |
| CMYK | cmyk(0%, 19%, 57%, 30%) | — | |
| HSV | hsv(40, 57%, 70%) | — | |
| HWB | hwb(40 30% 30%) | color: hwb(40 30% 30%) | |
| OKLCH | oklch(0.6739 0.0959 83.15) | color: oklch(0.6739 0.0959 83.15) | |
| Lab | lab(61.97 4.55 40.45) | color: lab(61.97 4.55 40.45) | |
| LCH | lch(61.97 40.71 83.58) | color: lch(61.97 40.71 83.58) |
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)
#A4A45D — rgb(164, 164, 93)
Deuteranopia (Green-blind)
#A6A961 — rgb(166, 169, 97)
Tritanopia (Blue-blind)
#B16A6D — rgb(177, 106, 109)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(40, 40%, 50%);
text
color: hsl(40, 40%, 50%);
border
border: 2px solid hsl(40, 40%, 50%);
gradient light
background: linear-gradient(to right, hsl(40, 40%, 70%), hsl(40, 40%, 50%));
gradient dark
background: linear-gradient(to right, hsl(40, 40%, 50%), hsl(40, 40%, 30%))
hex
background-color: #B3914D;
tailwind
bg-[hsl(40,40%,50%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(40, 40%, 50%, 0.4);
css variable
--color-primary: hsl(40, 40%, 50%);
Related Colors
Use Cases for Orange
Frequently Asked Questions
What are all the color codes for HSL(40, 40%, 50%)?
HEX: #B3914D | RGB: rgb(179, 145, 77) | CMYK: 0%, 19%, 57%, 30% | HSV: 40°, 57%, 70%. Copy any format from the conversion table above.
What colors go well with #B3914D?
The complementary color is HSL(220, 40%, 50%). 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, 40%, 50%) in CSS?
As HSL: color: hsl(40, 40%, 50%); — As HEX: color: #B3914D; — As RGB: color: rgb(179, 145, 77); — Tailwind CSS: bg-[hsl(40,40%,50%)] — CSS variable: --color-primary: hsl(40, 40%, 50%);