HSL(50, 28%, 40%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(50,28%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(50, 28%, 40%) | color: hsl(50, 28%, 40%) | |
| HEX | #837949 | color: #837949 | |
| RGB | rgb(131, 121, 73) | color: rgb(131, 121, 73) | |
| CMYK | cmyk(0%, 8%, 44%, 49%) | — | |
| HSV | hsv(50, 44%, 51%) | — | |
| HWB | hwb(50 29% 49%) | color: hwb(50 29% 49%) | |
| OKLCH | oklch(0.5735 0.0679 97.87) | color: oklch(0.5735 0.0679 97.87) | |
| Lab | lab(50.67 -3.44 27.66) | color: lab(50.67 -3.44 27.66) | |
| LCH | lch(50.67 27.87 97.09) | color: lch(50.67 27.87 97.09) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#7F7F55 — rgb(127, 127, 85)
Deuteranopia (Green-blind)
#7F8057 — rgb(127, 128, 87)
Tritanopia (Blue-blind)
#835E60 — rgb(131, 94, 96)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(50, 28%, 40%);
text
color: hsl(50, 28%, 40%);
border
border: 2px solid hsl(50, 28%, 40%);
gradient light
background: linear-gradient(to right, hsl(50, 28%, 60%), hsl(50, 28%, 40%));
gradient dark
background: linear-gradient(to right, hsl(50, 28%, 40%), hsl(50, 28%, 20%))
hex
background-color: #837949;
tailwind
bg-[hsl(50,28%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(50, 28%, 40%, 0.4);
css variable
--color-primary: hsl(50, 28%, 40%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(50, 28%, 40%)?
HEX: #837949 | RGB: rgb(131, 121, 73) | CMYK: 0%, 8%, 44%, 49% | HSV: 50°, 44%, 51%. Copy any format from the conversion table above.
What colors go well with #837949?
The complementary color is HSL(230, 28%, 40%). 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, 28%, 40%) in CSS?
As HSL: color: hsl(50, 28%, 40%); — As HEX: color: #837949; — As RGB: color: rgb(131, 121, 73); — Tailwind CSS: bg-[hsl(50,28%,40%)] — CSS variable: --color-primary: hsl(50, 28%, 40%);