HSL(45, 20%, 49%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(45,20%,49%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(45, 20%, 49%) | color: hsl(45, 20%, 49%) | |
| HEX | #968964 | color: #968964 | |
| RGB | rgb(150, 137, 100) | color: rgb(150, 137, 100) | |
| CMYK | cmyk(0%, 9%, 33%, 41%) | — | |
| HSV | hsv(44, 33%, 59%) | — | |
| HWB | hwb(44 40% 41%) | color: hwb(44 40% 41%) | |
| OKLCH | oklch(0.6321 0.0542 90.97) | color: oklch(0.6321 0.0542 90.97) | |
| Lab | lab(57.36 -0.96 21.65) | color: lab(57.36 -0.96 21.65) | |
| LCH | lch(57.36 21.67 92.54) | color: lch(57.36 21.67 92.54) |
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)
#90906D — rgb(144, 144, 109)
Deuteranopia (Green-blind)
#91926F — rgb(145, 146, 111)
Tritanopia (Blue-blind)
#957476 — rgb(149, 116, 118)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(45, 20%, 49%);
text
color: hsl(45, 20%, 49%);
border
border: 2px solid hsl(45, 20%, 49%);
gradient light
background: linear-gradient(to right, hsl(45, 20%, 69%), hsl(45, 20%, 49%));
gradient dark
background: linear-gradient(to right, hsl(45, 20%, 49%), hsl(45, 20%, 29%))
hex
background-color: #968964;
tailwind
bg-[hsl(45,20%,49%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(45, 20%, 49%, 0.4);
css variable
--color-primary: hsl(45, 20%, 49%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(45, 20%, 49%)?
HEX: #968964 | RGB: rgb(150, 137, 100) | CMYK: 0%, 9%, 33%, 41% | HSV: 44°, 33%, 59%. Copy any format from the conversion table above.
What colors go well with #968964?
The complementary color is HSL(225, 20%, 49%). For a triadic harmony, use hues 45°, 165°, and 285°. For analogous combinations, try hues 15° and 75°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(45, 20%, 49%) in CSS?
As HSL: color: hsl(45, 20%, 49%); — As HEX: color: #968964; — As RGB: color: rgb(150, 137, 100); — Tailwind CSS: bg-[hsl(45,20%,49%)] — CSS variable: --color-primary: hsl(45, 20%, 49%);