HSL(40, 20%, 40%)
Orange — Orange color
Adjust Color
Color Information
Color Name
Orange
Color Family
Orange
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(40,20%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(40, 20%, 40%) | color: hsl(40, 20%, 40%) | |
| HEX | #7A6D52 | color: #7A6D52 | |
| RGB | rgb(122, 109, 82) | color: rgb(122, 109, 82) | |
| CMYK | cmyk(0%, 11%, 33%, 52%) | — | |
| HSV | hsv(41, 33%, 48%) | — | |
| HWB | hwb(41 32% 52%) | color: hwb(41 32% 52%) | |
| OKLCH | oklch(0.5396 0.0429 85.19) | color: oklch(0.5396 0.0429 85.19) | |
| Lab | lab(46.56 0.66 16.97) | color: lab(46.56 0.66 16.97) | |
| LCH | lch(46.56 16.98 87.77) | color: lch(46.56 16.98 87.77) |
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)
#747459 — rgb(116, 116, 89)
Deuteranopia (Green-blind)
#75765A — rgb(117, 118, 90)
Tritanopia (Blue-blind)
#795E5F — rgb(121, 94, 95)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(40, 20%, 40%);
text
color: hsl(40, 20%, 40%);
border
border: 2px solid hsl(40, 20%, 40%);
gradient light
background: linear-gradient(to right, hsl(40, 20%, 60%), hsl(40, 20%, 40%));
gradient dark
background: linear-gradient(to right, hsl(40, 20%, 40%), hsl(40, 20%, 20%))
hex
background-color: #7A6D52;
tailwind
bg-[hsl(40,20%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(40, 20%, 40%, 0.4);
css variable
--color-primary: hsl(40, 20%, 40%);
Related Colors
Use Cases for Orange
Frequently Asked Questions
What are all the color codes for HSL(40, 20%, 40%)?
HEX: #7A6D52 | RGB: rgb(122, 109, 82) | CMYK: 0%, 11%, 33%, 52% | HSV: 41°, 33%, 48%. Copy any format from the conversion table above.
What colors go well with #7A6D52?
The complementary color is HSL(220, 20%, 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, 20%, 40%) in CSS?
As HSL: color: hsl(40, 20%, 40%); — As HEX: color: #7A6D52; — As RGB: color: rgb(122, 109, 82); — Tailwind CSS: bg-[hsl(40,20%,40%)] — CSS variable: --color-primary: hsl(40, 20%, 40%);