HSL(47, 50%, 21%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(47,50%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(47, 50%, 21%) | color: hsl(47, 50%, 21%) | |
| HEX | #50451B | color: #50451B | |
| RGB | rgb(80, 69, 27) | color: rgb(80, 69, 27) | |
| CMYK | cmyk(0%, 14%, 66%, 69%) | — | |
| HSV | hsv(48, 66%, 31%) | — | |
| HWB | hwb(48 11% 69%) | color: hwb(48 11% 69%) | |
| OKLCH | oklch(0.392 0.0615 94.72) | color: oklch(0.392 0.0615 94.72) | |
| Lab | lab(29.52 -1.23 26.55) | color: lab(29.52 -1.23 26.55) | |
| LCH | lch(29.52 26.58 92.65) | color: lch(29.52 26.58 92.65) |
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)
#4B4B25 — rgb(75, 75, 37)
Deuteranopia (Green-blind)
#4C4D28 — rgb(76, 77, 40)
Tritanopia (Blue-blind)
#4F2D2F — rgb(79, 45, 47)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(47, 50%, 21%);
text
color: hsl(47, 50%, 21%);
border
border: 2px solid hsl(47, 50%, 21%);
gradient light
background: linear-gradient(to right, hsl(47, 50%, 41%), hsl(47, 50%, 21%));
gradient dark
background: linear-gradient(to right, hsl(47, 50%, 21%), hsl(47, 50%, 1%))
hex
background-color: #50451B;
tailwind
bg-[hsl(47,50%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(47, 50%, 21%, 0.4);
css variable
--color-primary: hsl(47, 50%, 21%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(47, 50%, 21%)?
HEX: #50451B | RGB: rgb(80, 69, 27) | CMYK: 0%, 14%, 66%, 69% | HSV: 48°, 66%, 31%. Copy any format from the conversion table above.
What colors go well with #50451B?
The complementary color is HSL(227, 50%, 21%). For a triadic harmony, use hues 47°, 167°, and 287°. For analogous combinations, try hues 17° and 77°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(47, 50%, 21%) in CSS?
As HSL: color: hsl(47, 50%, 21%); — As HEX: color: #50451B; — As RGB: color: rgb(80, 69, 27); — Tailwind CSS: bg-[hsl(47,50%,21%)] — CSS variable: --color-primary: hsl(47, 50%, 21%);