HSL(51, 80%, 34%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(51,80%,34%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(51, 80%, 34%) | color: hsl(51, 80%, 34%) | |
| HEX | #9C8711 | color: #9C8711 | |
| RGB | rgb(156, 135, 17) | color: rgb(156, 135, 17) | |
| CMYK | cmyk(0%, 13%, 89%, 39%) | — | |
| HSV | hsv(51, 89%, 61%) | — | |
| HWB | hwb(51 7% 39%) | color: hwb(51 7% 39%) | |
| OKLCH | oklch(0.6241 0.1247 97.68) | color: oklch(0.6241 0.1247 97.68) | |
| Lab | lab(56.52 -3.4 58.21) | color: lab(56.52 -3.4 58.21) | |
| LCH | lch(56.52 58.31 93.34) | color: lch(56.52 58.31 93.34) |
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)
#93932E — rgb(147, 147, 46)
Deuteranopia (Green-blind)
#949634 — rgb(148, 150, 52)
Tritanopia (Blue-blind)
#9B4449 — rgb(155, 68, 73)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(51, 80%, 34%);
text
color: hsl(51, 80%, 34%);
border
border: 2px solid hsl(51, 80%, 34%);
gradient light
background: linear-gradient(to right, hsl(51, 80%, 54%), hsl(51, 80%, 34%));
gradient dark
background: linear-gradient(to right, hsl(51, 80%, 34%), hsl(51, 80%, 14%))
hex
background-color: #9C8711;
tailwind
bg-[hsl(51,80%,34%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(51, 80%, 34%, 0.4);
css variable
--color-primary: hsl(51, 80%, 34%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(51, 80%, 34%)?
HEX: #9C8711 | RGB: rgb(156, 135, 17) | CMYK: 0%, 13%, 89%, 39% | HSV: 51°, 89%, 61%. Copy any format from the conversion table above.
What colors go well with #9C8711?
The complementary color is HSL(231, 80%, 34%). 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, 80%, 34%) in CSS?
As HSL: color: hsl(51, 80%, 34%); — As HEX: color: #9C8711; — As RGB: color: rgb(156, 135, 17); — Tailwind CSS: bg-[hsl(51,80%,34%)] — CSS variable: --color-primary: hsl(51, 80%, 34%);