HSL(48, 30%, 40%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(48,30%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(48, 30%, 40%) | color: hsl(48, 30%, 40%) | |
| HEX | #857847 | color: #857847 | |
| RGB | rgb(133, 120, 71) | color: rgb(133, 120, 71) | |
| CMYK | cmyk(0%, 10%, 47%, 48%) | — | |
| HSV | hsv(47, 47%, 52%) | — | |
| HWB | hwb(47 28% 48%) | color: hwb(47 28% 48%) | |
| OKLCH | oklch(0.5729 0.0696 94.99) | color: oklch(0.5729 0.0696 94.99) | |
| Lab | lab(50.54 -2.22 28.65) | color: lab(50.54 -2.22 28.65) | |
| LCH | lch(50.54 28.74 94.43) | color: lch(50.54 28.74 94.43) |
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)
#7F7F53 — rgb(127, 127, 83)
Deuteranopia (Green-blind)
#808156 — rgb(128, 129, 86)
Tritanopia (Blue-blind)
#845C5E — rgb(132, 92, 94)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(48, 30%, 40%);
text
color: hsl(48, 30%, 40%);
border
border: 2px solid hsl(48, 30%, 40%);
gradient light
background: linear-gradient(to right, hsl(48, 30%, 60%), hsl(48, 30%, 40%));
gradient dark
background: linear-gradient(to right, hsl(48, 30%, 40%), hsl(48, 30%, 20%))
hex
background-color: #857847;
tailwind
bg-[hsl(48,30%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(48, 30%, 40%, 0.4);
css variable
--color-primary: hsl(48, 30%, 40%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(48, 30%, 40%)?
HEX: #857847 | RGB: rgb(133, 120, 71) | CMYK: 0%, 10%, 47%, 48% | HSV: 47°, 47%, 52%. Copy any format from the conversion table above.
What colors go well with #857847?
The complementary color is HSL(228, 30%, 40%). For a triadic harmony, use hues 48°, 168°, and 288°. For analogous combinations, try hues 18° and 78°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(48, 30%, 40%) in CSS?
As HSL: color: hsl(48, 30%, 40%); — As HEX: color: #857847; — As RGB: color: rgb(133, 120, 71); — Tailwind CSS: bg-[hsl(48,30%,40%)] — CSS variable: --color-primary: hsl(48, 30%, 40%);