HSL(51, 40%, 47%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(51,40%,47%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(51, 40%, 47%) | color: hsl(51, 40%, 47%) | |
| HEX | #A89948 | color: #A89948 | |
| RGB | rgb(168, 153, 72) | color: rgb(168, 153, 72) | |
| CMYK | cmyk(0%, 9%, 57%, 34%) | — | |
| HSV | hsv(51, 57%, 66%) | — | |
| HWB | hwb(51 28% 34%) | color: hwb(51 28% 34%) | |
| OKLCH | oklch(0.6793 0.1035 98.97) | color: oklch(0.6793 0.1035 98.97) | |
| Lab | lab(62.99 -5 43.86) | color: lab(62.99 -5 43.86) | |
| LCH | lch(62.99 44.14 96.5) | color: lch(62.99 44.14 96.5) |
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)
#A2A15C — rgb(162, 161, 92)
Deuteranopia (Green-blind)
#A2A460 — rgb(162, 164, 96)
Tritanopia (Blue-blind)
#A76B6E — rgb(167, 107, 110)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(51, 40%, 47%);
text
color: hsl(51, 40%, 47%);
border
border: 2px solid hsl(51, 40%, 47%);
gradient light
background: linear-gradient(to right, hsl(51, 40%, 67%), hsl(51, 40%, 47%));
gradient dark
background: linear-gradient(to right, hsl(51, 40%, 47%), hsl(51, 40%, 27%))
hex
background-color: #A89948;
tailwind
bg-[hsl(51,40%,47%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(51, 40%, 47%, 0.4);
css variable
--color-primary: hsl(51, 40%, 47%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(51, 40%, 47%)?
HEX: #A89948 | RGB: rgb(168, 153, 72) | CMYK: 0%, 9%, 57%, 34% | HSV: 51°, 57%, 66%. Copy any format from the conversion table above.
What colors go well with #A89948?
The complementary color is HSL(231, 40%, 47%). For a triadic harmony, use hues 51°, 171°, and 291°. For analogous combinations, try hues 21° and 81°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(51, 40%, 47%) in CSS?
As HSL: color: hsl(51, 40%, 47%); — As HEX: color: #A89948; — As RGB: color: rgb(168, 153, 72); — Tailwind CSS: bg-[hsl(51,40%,47%)] — CSS variable: --color-primary: hsl(51, 40%, 47%);