HSL(48, 70%, 22%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(48,70%,22%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(48, 70%, 22%) | color: hsl(48, 70%, 22%) | |
| HEX | #5F5011 | color: #5F5011 | |
| RGB | rgb(95, 80, 17) | color: rgb(95, 80, 17) | |
| CMYK | cmyk(0%, 16%, 82%, 63%) | — | |
| HSV | hsv(48, 82%, 37%) | — | |
| HWB | hwb(48 7% 63%) | color: hwb(48 7% 63%) | |
| OKLCH | oklch(0.4343 0.0809 94.94) | color: oklch(0.4343 0.0809 94.94) | |
| Lab | lab(34.42 -1.07 36.84) | color: lab(34.42 -1.07 36.84) | |
| LCH | lch(34.42 36.86 91.66) | color: lch(34.42 36.86 91.66) |
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)
#595820 — rgb(89, 88, 32)
Deuteranopia (Green-blind)
#595B24 — rgb(89, 91, 36)
Tritanopia (Blue-blind)
#5E2C2F — rgb(94, 44, 47)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(48, 70%, 22%);
text
color: hsl(48, 70%, 22%);
border
border: 2px solid hsl(48, 70%, 22%);
gradient light
background: linear-gradient(to right, hsl(48, 70%, 42%), hsl(48, 70%, 22%));
gradient dark
background: linear-gradient(to right, hsl(48, 70%, 22%), hsl(48, 70%, 2%))
hex
background-color: #5F5011;
tailwind
bg-[hsl(48,70%,22%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(48, 70%, 22%, 0.4);
css variable
--color-primary: hsl(48, 70%, 22%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(48, 70%, 22%)?
HEX: #5F5011 | RGB: rgb(95, 80, 17) | CMYK: 0%, 16%, 82%, 63% | HSV: 48°, 82%, 37%. Copy any format from the conversion table above.
What colors go well with #5F5011?
The complementary color is HSL(228, 70%, 22%). 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, 70%, 22%) in CSS?
As HSL: color: hsl(48, 70%, 22%); — As HEX: color: #5F5011; — As RGB: color: rgb(95, 80, 17); — Tailwind CSS: bg-[hsl(48,70%,22%)] — CSS variable: --color-primary: hsl(48, 70%, 22%);