HSL(48, 70%, 49%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(48,70%,49%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(48, 70%, 49%) | color: hsl(48, 70%, 49%) | |
| HEX | #D4B125 | color: #D4B125 | |
| RGB | rgb(212, 177, 37) | color: rgb(212, 177, 37) | |
| CMYK | cmyk(0%, 17%, 83%, 17%) | — | |
| HSV | hsv(48, 83%, 83%) | — | |
| HWB | hwb(48 14% 17%) | color: hwb(48 14% 17%) | |
| OKLCH | oklch(0.7696 0.1488 93.52) | color: oklch(0.7696 0.1488 93.52) | |
| Lab | lab(73.27 -0.33 69.21) | color: lab(73.27 -0.33 69.21) | |
| LCH | lch(73.27 69.21 90.27) | color: lch(73.27 69.21 90.27) |
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)
#C5C547 — rgb(197, 197, 71)
Deuteranopia (Green-blind)
#C7CA4F — rgb(199, 202, 79)
Tritanopia (Blue-blind)
#D26268 — rgb(210, 98, 104)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(48, 70%, 49%);
text
color: hsl(48, 70%, 49%);
border
border: 2px solid hsl(48, 70%, 49%);
gradient light
background: linear-gradient(to right, hsl(48, 70%, 69%), hsl(48, 70%, 49%));
gradient dark
background: linear-gradient(to right, hsl(48, 70%, 49%), hsl(48, 70%, 29%))
hex
background-color: #D4B125;
tailwind
bg-[hsl(48,70%,49%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(48, 70%, 49%, 0.4);
css variable
--color-primary: hsl(48, 70%, 49%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(48, 70%, 49%)?
HEX: #D4B125 | RGB: rgb(212, 177, 37) | CMYK: 0%, 17%, 83%, 17% | HSV: 48°, 83%, 83%. Copy any format from the conversion table above.
What colors go well with #D4B125?
The complementary color is HSL(228, 70%, 49%). 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%, 49%) in CSS?
As HSL: color: hsl(48, 70%, 49%); — As HEX: color: #D4B125; — As RGB: color: rgb(212, 177, 37); — Tailwind CSS: bg-[hsl(48,70%,49%)] — CSS variable: --color-primary: hsl(48, 70%, 49%);