HSL(51, 40%, 52%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(51,40%,52%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(51, 40%, 52%) | color: hsl(51, 40%, 52%) | |
| HEX | #B6A754 | color: #B6A754 | |
| RGB | rgb(182, 167, 84) | color: rgb(182, 167, 84) | |
| CMYK | cmyk(0%, 8%, 54%, 29%) | — | |
| HSV | hsv(51, 54%, 71%) | — | |
| HWB | hwb(51 33% 29%) | color: hwb(51 33% 29%) | |
| OKLCH | oklch(0.7239 0.1057 99.25) | color: oklch(0.7239 0.1057 99.25) | |
| Lab | lab(68.19 -5.47 44.36) | color: lab(68.19 -5.47 44.36) | |
| LCH | lch(68.19 44.7 97.03) | color: lch(68.19 44.7 97.03) |
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)
#B0AF68 — rgb(176, 175, 104)
Deuteranopia (Green-blind)
#B0B26D — rgb(176, 178, 109)
Tritanopia (Blue-blind)
#B5787B — rgb(181, 120, 123)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(51, 40%, 52%);
text
color: hsl(51, 40%, 52%);
border
border: 2px solid hsl(51, 40%, 52%);
gradient light
background: linear-gradient(to right, hsl(51, 40%, 72%), hsl(51, 40%, 52%));
gradient dark
background: linear-gradient(to right, hsl(51, 40%, 52%), hsl(51, 40%, 32%))
hex
background-color: #B6A754;
tailwind
bg-[hsl(51,40%,52%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(51, 40%, 52%, 0.4);
css variable
--color-primary: hsl(51, 40%, 52%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(51, 40%, 52%)?
HEX: #B6A754 | RGB: rgb(182, 167, 84) | CMYK: 0%, 8%, 54%, 29% | HSV: 51°, 54%, 71%. Copy any format from the conversion table above.
What colors go well with #B6A754?
The complementary color is HSL(231, 40%, 52%). 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%, 52%) in CSS?
As HSL: color: hsl(51, 40%, 52%); — As HEX: color: #B6A754; — As RGB: color: rgb(182, 167, 84); — Tailwind CSS: bg-[hsl(51,40%,52%)] — CSS variable: --color-primary: hsl(51, 40%, 52%);