HSL(50, 40%, 20%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(50,40%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(50, 40%, 20%) | color: hsl(50, 40%, 20%) | |
| HEX | #47411F | color: #47411F | |
| RGB | rgb(71, 65, 31) | color: rgb(71, 65, 31) | |
| CMYK | cmyk(0%, 8%, 56%, 72%) | — | |
| HSV | hsv(51, 56%, 28%) | — | |
| HWB | hwb(51 12% 72%) | color: hwb(51 12% 72%) | |
| OKLCH | oklch(0.3727 0.0518 99.5) | color: oklch(0.3727 0.0518 99.5) | |
| Lab | lab(27.35 -2.86 21.5) | color: lab(27.35 -2.86 21.5) | |
| LCH | lch(27.35 21.69 97.58) | color: lch(27.35 21.69 97.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: white
Color Blindness Simulation
Protanopia (Red-blind)
#444427 — rgb(68, 68, 39)
Deuteranopia (Green-blind)
#454529 — rgb(69, 69, 41)
Tritanopia (Blue-blind)
#472E2F — rgb(71, 46, 47)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(50, 40%, 20%);
text
color: hsl(50, 40%, 20%);
border
border: 2px solid hsl(50, 40%, 20%);
gradient light
background: linear-gradient(to right, hsl(50, 40%, 40%), hsl(50, 40%, 20%));
gradient dark
background: linear-gradient(to right, hsl(50, 40%, 20%), hsl(50, 40%, 0%))
hex
background-color: #47411F;
tailwind
bg-[hsl(50,40%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(50, 40%, 20%, 0.4);
css variable
--color-primary: hsl(50, 40%, 20%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(50, 40%, 20%)?
HEX: #47411F | RGB: rgb(71, 65, 31) | CMYK: 0%, 8%, 56%, 72% | HSV: 51°, 56%, 28%. Copy any format from the conversion table above.
What colors go well with #47411F?
The complementary color is HSL(230, 40%, 20%). For a triadic harmony, use hues 50°, 170°, and 290°. For analogous combinations, try hues 20° and 80°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(50, 40%, 20%) in CSS?
As HSL: color: hsl(50, 40%, 20%); — As HEX: color: #47411F; — As RGB: color: rgb(71, 65, 31); — Tailwind CSS: bg-[hsl(50,40%,20%)] — CSS variable: --color-primary: hsl(50, 40%, 20%);