HSL(48, 96%, 24%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(48,96%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(48, 96%, 24%) | color: hsl(48, 96%, 24%) | |
| HEX | #786002 | color: #786002 | |
| RGB | rgb(120, 96, 2) | color: rgb(120, 96, 2) | |
| CMYK | cmyk(0%, 20%, 98%, 53%) | — | |
| HSV | hsv(48, 98%, 47%) | — | |
| HWB | hwb(48 1% 53%) | color: hwb(48 1% 53%) | |
| OKLCH | oklch(0.4987 0.1013 91.54) | color: oklch(0.4987 0.1013 91.54) | |
| Lab | lab(41.79 1.33 48.55) | color: lab(41.79 1.33 48.55) | |
| LCH | lch(41.79 48.57 88.43) | color: lch(41.79 48.57 88.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: white
Color Blindness Simulation
Protanopia (Red-blind)
#6E6D19 — rgb(110, 109, 25)
Deuteranopia (Green-blind)
#6F711E — rgb(111, 113, 30)
Tritanopia (Blue-blind)
#772B2F — rgb(119, 43, 47)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(48, 96%, 24%);
text
color: hsl(48, 96%, 24%);
border
border: 2px solid hsl(48, 96%, 24%);
gradient light
background: linear-gradient(to right, hsl(48, 96%, 44%), hsl(48, 96%, 24%));
gradient dark
background: linear-gradient(to right, hsl(48, 96%, 24%), hsl(48, 96%, 4%))
hex
background-color: #786002;
tailwind
bg-[hsl(48,96%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(48, 96%, 24%, 0.4);
css variable
--color-primary: hsl(48, 96%, 24%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(48, 96%, 24%)?
HEX: #786002 | RGB: rgb(120, 96, 2) | CMYK: 0%, 20%, 98%, 53% | HSV: 48°, 98%, 47%. Copy any format from the conversion table above.
What colors go well with #786002?
The complementary color is HSL(228, 96%, 24%). 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, 96%, 24%) in CSS?
As HSL: color: hsl(48, 96%, 24%); — As HEX: color: #786002; — As RGB: color: rgb(120, 96, 2); — Tailwind CSS: bg-[hsl(48,96%,24%)] — CSS variable: --color-primary: hsl(48, 96%, 24%);