HSL(50, 70%, 36%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(50,70%,36%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(50, 70%, 36%) | color: hsl(50, 70%, 36%) | |
| HEX | #9C871C | color: #9C871C | |
| RGB | rgb(156, 135, 28) | color: rgb(156, 135, 28) | |
| CMYK | cmyk(0%, 13%, 82%, 39%) | — | |
| HSV | hsv(50, 82%, 61%) | — | |
| HWB | hwb(50 11% 39%) | color: hwb(50 11% 39%) | |
| OKLCH | oklch(0.6246 0.1204 97.14) | color: oklch(0.6246 0.1204 97.14) | |
| Lab | lab(56.57 -3.09 55.29) | color: lab(56.57 -3.09 55.29) | |
| LCH | lch(56.57 55.38 93.2) | color: lch(56.57 55.38 93.2) |
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)
#939336 — rgb(147, 147, 54)
Deuteranopia (Green-blind)
#94963C — rgb(148, 150, 60)
Tritanopia (Blue-blind)
#9B4A4F — rgb(155, 74, 79)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(50, 70%, 36%);
text
color: hsl(50, 70%, 36%);
border
border: 2px solid hsl(50, 70%, 36%);
gradient light
background: linear-gradient(to right, hsl(50, 70%, 56%), hsl(50, 70%, 36%));
gradient dark
background: linear-gradient(to right, hsl(50, 70%, 36%), hsl(50, 70%, 16%))
hex
background-color: #9C871C;
tailwind
bg-[hsl(50,70%,36%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(50, 70%, 36%, 0.4);
css variable
--color-primary: hsl(50, 70%, 36%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(50, 70%, 36%)?
HEX: #9C871C | RGB: rgb(156, 135, 28) | CMYK: 0%, 13%, 82%, 39% | HSV: 50°, 82%, 61%. Copy any format from the conversion table above.
What colors go well with #9C871C?
The complementary color is HSL(230, 70%, 36%). 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, 70%, 36%) in CSS?
As HSL: color: hsl(50, 70%, 36%); — As HEX: color: #9C871C; — As RGB: color: rgb(156, 135, 28); — Tailwind CSS: bg-[hsl(50,70%,36%)] — CSS variable: --color-primary: hsl(50, 70%, 36%);