HSL(46, 70%, 49%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(46,70%,49%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(46, 70%, 49%) | color: hsl(46, 70%, 49%) | |
| HEX | #D4AC25 | color: #D4AC25 | |
| RGB | rgb(212, 172, 37) | color: rgb(212, 172, 37) | |
| CMYK | cmyk(0%, 19%, 83%, 17%) | — | |
| HSV | hsv(46, 83%, 83%) | — | |
| HWB | hwb(46 14% 17%) | color: hwb(46 14% 17%) | |
| OKLCH | oklch(0.7594 0.1461 90.64) | color: oklch(0.7594 0.1461 90.64) | |
| Lab | lab(71.99 2.31 68.11) | color: lab(71.99 2.31 68.11) | |
| LCH | lch(71.99 68.15 88.06) | color: lch(71.99 68.15 88.06) |
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)
#C3C246 — rgb(195, 194, 70)
Deuteranopia (Green-blind)
#C5C84E — rgb(197, 200, 78)
Tritanopia (Blue-blind)
#D25F65 — rgb(210, 95, 101)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(46, 70%, 49%);
text
color: hsl(46, 70%, 49%);
border
border: 2px solid hsl(46, 70%, 49%);
gradient light
background: linear-gradient(to right, hsl(46, 70%, 69%), hsl(46, 70%, 49%));
gradient dark
background: linear-gradient(to right, hsl(46, 70%, 49%), hsl(46, 70%, 29%))
hex
background-color: #D4AC25;
tailwind
bg-[hsl(46,70%,49%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(46, 70%, 49%, 0.4);
css variable
--color-primary: hsl(46, 70%, 49%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(46, 70%, 49%)?
HEX: #D4AC25 | RGB: rgb(212, 172, 37) | CMYK: 0%, 19%, 83%, 17% | HSV: 46°, 83%, 83%. Copy any format from the conversion table above.
What colors go well with #D4AC25?
The complementary color is HSL(226, 70%, 49%). For a triadic harmony, use hues 46°, 166°, and 286°. For analogous combinations, try hues 16° and 76°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(46, 70%, 49%) in CSS?
As HSL: color: hsl(46, 70%, 49%); — As HEX: color: #D4AC25; — As RGB: color: rgb(212, 172, 37); — Tailwind CSS: bg-[hsl(46,70%,49%)] — CSS variable: --color-primary: hsl(46, 70%, 49%);