HSL(45, 20%, 30%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(45,20%,30%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(45, 20%, 30%) | color: hsl(45, 20%, 30%) | |
| HEX | #5C543D | color: #5C543D | |
| RGB | rgb(92, 84, 61) | color: rgb(92, 84, 61) | |
| CMYK | cmyk(0%, 9%, 34%, 64%) | — | |
| HSV | hsv(45, 34%, 36%) | — | |
| HWB | hwb(45 24% 64%) | color: hwb(45 24% 64%) | |
| OKLCH | oklch(0.4471 0.0368 91.14) | color: oklch(0.4471 0.0368 91.14) | |
| Lab | lab(35.89 -0.73 14.66) | color: lab(35.89 -0.73 14.66) | |
| LCH | lch(35.89 14.68 92.85) | color: lch(35.89 14.68 92.85) |
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)
#595843 — rgb(89, 88, 67)
Deuteranopia (Green-blind)
#595A44 — rgb(89, 90, 68)
Tritanopia (Blue-blind)
#5C4748 — rgb(92, 71, 72)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(45, 20%, 30%);
text
color: hsl(45, 20%, 30%);
border
border: 2px solid hsl(45, 20%, 30%);
gradient light
background: linear-gradient(to right, hsl(45, 20%, 50%), hsl(45, 20%, 30%));
gradient dark
background: linear-gradient(to right, hsl(45, 20%, 30%), hsl(45, 20%, 10%))
hex
background-color: #5C543D;
tailwind
bg-[hsl(45,20%,30%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(45, 20%, 30%, 0.4);
css variable
--color-primary: hsl(45, 20%, 30%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(45, 20%, 30%)?
HEX: #5C543D | RGB: rgb(92, 84, 61) | CMYK: 0%, 9%, 34%, 64% | HSV: 45°, 34%, 36%. Copy any format from the conversion table above.
What colors go well with #5C543D?
The complementary color is HSL(225, 20%, 30%). For a triadic harmony, use hues 45°, 165°, and 285°. For analogous combinations, try hues 15° and 75°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(45, 20%, 30%) in CSS?
As HSL: color: hsl(45, 20%, 30%); — As HEX: color: #5C543D; — As RGB: color: rgb(92, 84, 61); — Tailwind CSS: bg-[hsl(45,20%,30%)] — CSS variable: --color-primary: hsl(45, 20%, 30%);