HSL(52, 96%, 37%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(52,96%,37%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(52, 96%, 37%) | color: hsl(52, 96%, 37%) | |
| HEX | #B9A104 | color: #B9A104 | |
| RGB | rgb(185, 161, 4) | color: rgb(185, 161, 4) | |
| CMYK | cmyk(0%, 13%, 98%, 27%) | — | |
| HSV | hsv(52, 98%, 73%) | — | |
| HWB | hwb(52 1% 27%) | color: hwb(52 1% 27%) | |
| OKLCH | oklch(0.7087 0.1459 98.42) | color: oklch(0.7087 0.1459 98.42) | |
| Lab | lab(66.38 -4.45 69) | color: lab(66.38 -4.45 69) | |
| LCH | lch(66.38 69.14 93.69) | color: lch(66.38 69.14 93.69) |
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)
#AFAE2A — rgb(175, 174, 42)
Deuteranopia (Green-blind)
#B0B233 — rgb(176, 178, 51)
Tritanopia (Blue-blind)
#B8484F — rgb(184, 72, 79)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(52, 96%, 37%);
text
color: hsl(52, 96%, 37%);
border
border: 2px solid hsl(52, 96%, 37%);
gradient light
background: linear-gradient(to right, hsl(52, 96%, 57%), hsl(52, 96%, 37%));
gradient dark
background: linear-gradient(to right, hsl(52, 96%, 37%), hsl(52, 96%, 17%))
hex
background-color: #B9A104;
tailwind
bg-[hsl(52,96%,37%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(52, 96%, 37%, 0.4);
css variable
--color-primary: hsl(52, 96%, 37%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(52, 96%, 37%)?
HEX: #B9A104 | RGB: rgb(185, 161, 4) | CMYK: 0%, 13%, 98%, 27% | HSV: 52°, 98%, 73%. Copy any format from the conversion table above.
What colors go well with #B9A104?
The complementary color is HSL(232, 96%, 37%). For a triadic harmony, use hues 52°, 172°, and 292°. For analogous combinations, try hues 22° and 82°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(52, 96%, 37%) in CSS?
As HSL: color: hsl(52, 96%, 37%); — As HEX: color: #B9A104; — As RGB: color: rgb(185, 161, 4); — Tailwind CSS: bg-[hsl(52,96%,37%)] — CSS variable: --color-primary: hsl(52, 96%, 37%);