HSL(46, 16%, 50%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
N/A
CSS Class
bg-[hsl(46,16%,50%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(46, 16%, 50%) | color: hsl(46, 16%, 50%) | |
| HEX | #948A6B | color: #948A6B | |
| RGB | rgb(148, 138, 107) | color: rgb(148, 138, 107) | |
| CMYK | cmyk(0%, 7%, 28%, 42%) | — | |
| HSV | hsv(45, 28%, 58%) | — | |
| HWB | hwb(45 42% 42%) | color: hwb(45 42% 42%) | |
| OKLCH | oklch(0.634 0.0456 92.31) | color: oklch(0.634 0.0456 92.31) | |
| Lab | lab(57.59 -1.38 17.99) | color: lab(57.59 -1.38 17.99) | |
| LCH | lch(57.59 18.04 94.39) | color: lch(57.59 18.04 94.39) |
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)
#909073 — rgb(144, 144, 115)
Deuteranopia (Green-blind)
#909174 — rgb(144, 145, 116)
Tritanopia (Blue-blind)
#94787A — rgb(148, 120, 122)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(46, 16%, 50%);
text
color: hsl(46, 16%, 50%);
border
border: 2px solid hsl(46, 16%, 50%);
gradient light
background: linear-gradient(to right, hsl(46, 16%, 70%), hsl(46, 16%, 50%));
gradient dark
background: linear-gradient(to right, hsl(46, 16%, 50%), hsl(46, 16%, 30%))
hex
background-color: #948A6B;
tailwind
bg-[hsl(46,16%,50%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(46, 16%, 50%, 0.4);
css variable
--color-primary: hsl(46, 16%, 50%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(46, 16%, 50%)?
HEX: #948A6B | RGB: rgb(148, 138, 107) | CMYK: 0%, 7%, 28%, 42% | HSV: 45°, 28%, 58%. Copy any format from the conversion table above.
What colors go well with #948A6B?
The complementary color is HSL(226, 16%, 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, 16%, 50%) in CSS?
As HSL: color: hsl(46, 16%, 50%); — As HEX: color: #948A6B; — As RGB: color: rgb(148, 138, 107); — Tailwind CSS: bg-[hsl(46,16%,50%)] — CSS variable: --color-primary: hsl(46, 16%, 50%);