HSL(40, 20%, 30%)
Orange — Orange color
Adjust Color
Color Information
Color Name
Orange
Color Family
Orange
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(40,20%,30%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(40, 20%, 30%) | color: hsl(40, 20%, 30%) | |
| HEX | #5C523D | color: #5C523D | |
| RGB | rgb(92, 82, 61) | color: rgb(92, 82, 61) | |
| CMYK | cmyk(0%, 11%, 34%, 64%) | — | |
| HSV | hsv(41, 34%, 36%) | — | |
| HWB | hwb(41 24% 64%) | color: hwb(41 24% 64%) | |
| OKLCH | oklch(0.4424 0.035 85.42) | color: oklch(0.4424 0.035 85.42) | |
| Lab | lab(35.3 0.49 13.86) | color: lab(35.3 0.49 13.86) | |
| LCH | lch(35.3 13.87 87.98) | color: lch(35.3 13.87 87.98) |
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)
#585842 — rgb(88, 88, 66)
Deuteranopia (Green-blind)
#585943 — rgb(88, 89, 67)
Tritanopia (Blue-blind)
#5C4647 — rgb(92, 70, 71)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(40, 20%, 30%);
text
color: hsl(40, 20%, 30%);
border
border: 2px solid hsl(40, 20%, 30%);
gradient light
background: linear-gradient(to right, hsl(40, 20%, 50%), hsl(40, 20%, 30%));
gradient dark
background: linear-gradient(to right, hsl(40, 20%, 30%), hsl(40, 20%, 10%))
hex
background-color: #5C523D;
tailwind
bg-[hsl(40,20%,30%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(40, 20%, 30%, 0.4);
css variable
--color-primary: hsl(40, 20%, 30%);
Related Colors
Use Cases for Orange
Frequently Asked Questions
What are all the color codes for HSL(40, 20%, 30%)?
HEX: #5C523D | RGB: rgb(92, 82, 61) | CMYK: 0%, 11%, 34%, 64% | HSV: 41°, 34%, 36%. Copy any format from the conversion table above.
What colors go well with #5C523D?
The complementary color is HSL(220, 20%, 30%). 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%, 30%) in CSS?
As HSL: color: hsl(40, 20%, 30%); — As HEX: color: #5C523D; — As RGB: color: rgb(92, 82, 61); — Tailwind CSS: bg-[hsl(40,20%,30%)] — CSS variable: --color-primary: hsl(40, 20%, 30%);