HSL(50, 62%, 45%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(50,62%,45%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(50, 62%, 45%) | color: hsl(50, 62%, 45%) | |
| HEX | #BAA22C | color: #BAA22C | |
| RGB | rgb(186, 162, 44) | color: rgb(186, 162, 44) | |
| CMYK | cmyk(0%, 13%, 76%, 27%) | — | |
| HSV | hsv(50, 76%, 73%) | — | |
| HWB | hwb(50 18% 27%) | color: hwb(50 18% 27%) | |
| OKLCH | oklch(0.7132 0.1332 97.08) | color: oklch(0.7132 0.1332 97.08) | |
| Lab | lab(66.87 -3.58 60.36) | color: lab(66.87 -3.58 60.36) | |
| LCH | lch(66.87 60.47 93.39) | color: lch(66.87 60.47 93.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)
#B0AF49 — rgb(176, 175, 73)
Deuteranopia (Green-blind)
#B1B34F — rgb(177, 179, 79)
Tritanopia (Blue-blind)
#B95F64 — rgb(185, 95, 100)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(50, 62%, 45%);
text
color: hsl(50, 62%, 45%);
border
border: 2px solid hsl(50, 62%, 45%);
gradient light
background: linear-gradient(to right, hsl(50, 62%, 65%), hsl(50, 62%, 45%));
gradient dark
background: linear-gradient(to right, hsl(50, 62%, 45%), hsl(50, 62%, 25%))
hex
background-color: #BAA22C;
tailwind
bg-[hsl(50,62%,45%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(50, 62%, 45%, 0.4);
css variable
--color-primary: hsl(50, 62%, 45%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(50, 62%, 45%)?
HEX: #BAA22C | RGB: rgb(186, 162, 44) | CMYK: 0%, 13%, 76%, 27% | HSV: 50°, 76%, 73%. Copy any format from the conversion table above.
What colors go well with #BAA22C?
The complementary color is HSL(230, 62%, 45%). For a triadic harmony, use hues 50°, 170°, and 290°. For analogous combinations, try hues 20° and 80°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(50, 62%, 45%) in CSS?
As HSL: color: hsl(50, 62%, 45%); — As HEX: color: #BAA22C; — As RGB: color: rgb(186, 162, 44); — Tailwind CSS: bg-[hsl(50,62%,45%)] — CSS variable: --color-primary: hsl(50, 62%, 45%);