HSL(46, 40%, 50%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(46,40%,50%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(46, 40%, 50%) | color: hsl(46, 40%, 50%) | |
| HEX | #B39B4D | color: #B39B4D | |
| RGB | rgb(179, 155, 77) | color: rgb(179, 155, 77) | |
| CMYK | cmyk(0%, 13%, 57%, 30%) | — | |
| HSV | hsv(46, 57%, 70%) | — | |
| HWB | hwb(46 30% 30%) | color: hwb(46 30% 30%) | |
| OKLCH | oklch(0.6947 0.102 92.5) | color: oklch(0.6947 0.102 92.5) | |
| Lab | lab(64.61 -0.91 43.55) | color: lab(64.61 -0.91 43.55) | |
| LCH | lch(64.61 43.56 91.2) | color: lch(64.61 43.56 91.2) |
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)
#A9A860 — rgb(169, 168, 96)
Deuteranopia (Green-blind)
#AAAC64 — rgb(170, 172, 100)
Tritanopia (Blue-blind)
#B26F72 — rgb(178, 111, 114)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(46, 40%, 50%);
text
color: hsl(46, 40%, 50%);
border
border: 2px solid hsl(46, 40%, 50%);
gradient light
background: linear-gradient(to right, hsl(46, 40%, 70%), hsl(46, 40%, 50%));
gradient dark
background: linear-gradient(to right, hsl(46, 40%, 50%), hsl(46, 40%, 30%))
hex
background-color: #B39B4D;
tailwind
bg-[hsl(46,40%,50%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(46, 40%, 50%, 0.4);
css variable
--color-primary: hsl(46, 40%, 50%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(46, 40%, 50%)?
HEX: #B39B4D | RGB: rgb(179, 155, 77) | CMYK: 0%, 13%, 57%, 30% | HSV: 46°, 57%, 70%. Copy any format from the conversion table above.
What colors go well with #B39B4D?
The complementary color is HSL(226, 40%, 50%). 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, 40%, 50%) in CSS?
As HSL: color: hsl(46, 40%, 50%); — As HEX: color: #B39B4D; — As RGB: color: rgb(179, 155, 77); — Tailwind CSS: bg-[hsl(46,40%,50%)] — CSS variable: --color-primary: hsl(46, 40%, 50%);