HSL(50, 61%, 45%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(50,61%,45%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(50, 61%, 45%) | color: hsl(50, 61%, 45%) | |
| HEX | #B9A12D | color: #B9A12D | |
| RGB | rgb(185, 161, 45) | color: rgb(185, 161, 45) | |
| CMYK | cmyk(0%, 13%, 76%, 27%) | — | |
| HSV | hsv(50, 76%, 73%) | — | |
| HWB | hwb(50 18% 27%) | color: hwb(50 18% 27%) | |
| OKLCH | oklch(0.7102 0.1318 96.92) | color: oklch(0.7102 0.1318 96.92) | |
| Lab | lab(66.52 -3.45 59.64) | color: lab(66.52 -3.45 59.64) | |
| LCH | lch(66.52 59.74 93.31) | color: lch(66.52 59.74 93.31) |
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)
#AFAE49 — rgb(175, 174, 73)
Deuteranopia (Green-blind)
#B0B250 — rgb(176, 178, 80)
Tritanopia (Blue-blind)
#B85F64 — rgb(184, 95, 100)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(50, 61%, 45%);
text
color: hsl(50, 61%, 45%);
border
border: 2px solid hsl(50, 61%, 45%);
gradient light
background: linear-gradient(to right, hsl(50, 61%, 65%), hsl(50, 61%, 45%));
gradient dark
background: linear-gradient(to right, hsl(50, 61%, 45%), hsl(50, 61%, 25%))
hex
background-color: #B9A12D;
tailwind
bg-[hsl(50,61%,45%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(50, 61%, 45%, 0.4);
css variable
--color-primary: hsl(50, 61%, 45%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(50, 61%, 45%)?
HEX: #B9A12D | RGB: rgb(185, 161, 45) | CMYK: 0%, 13%, 76%, 27% | HSV: 50°, 76%, 73%. Copy any format from the conversion table above.
What colors go well with #B9A12D?
The complementary color is HSL(230, 61%, 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, 61%, 45%) in CSS?
As HSL: color: hsl(50, 61%, 45%); — As HEX: color: #B9A12D; — As RGB: color: rgb(185, 161, 45); — Tailwind CSS: bg-[hsl(50,61%,45%)] — CSS variable: --color-primary: hsl(50, 61%, 45%);