HSL(57, 18%, 40%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
N/A
CSS Class
bg-[hsl(57,18%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(57, 18%, 40%) | color: hsl(57, 18%, 40%) | |
| HEX | #787754 | color: #787754 | |
| RGB | rgb(120, 119, 84) | color: rgb(120, 119, 84) | |
| CMYK | cmyk(0%, 1%, 30%, 53%) | — | |
| HSV | hsv(58, 30%, 47%) | — | |
| HWB | hwb(58 33% 53%) | color: hwb(58 33% 53%) | |
| OKLCH | oklch(0.5608 0.0508 106.55) | color: oklch(0.5608 0.0508 106.55) | |
| Lab | lab(49.29 -5.66 19.45) | color: lab(49.29 -5.66 19.45) | |
| LCH | lch(49.29 20.26 106.23) | color: lch(49.29 20.26 106.23) |
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: white
Color Blindness Simulation
Protanopia (Red-blind)
#78785C — rgb(120, 120, 92)
Deuteranopia (Green-blind)
#78785F — rgb(120, 120, 95)
Tritanopia (Blue-blind)
#786365 — rgb(120, 99, 101)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(57, 18%, 40%);
text
color: hsl(57, 18%, 40%);
border
border: 2px solid hsl(57, 18%, 40%);
gradient light
background: linear-gradient(to right, hsl(57, 18%, 60%), hsl(57, 18%, 40%));
gradient dark
background: linear-gradient(to right, hsl(57, 18%, 40%), hsl(57, 18%, 20%))
hex
background-color: #787754;
tailwind
bg-[hsl(57,18%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(57, 18%, 40%, 0.4);
css variable
--color-primary: hsl(57, 18%, 40%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(57, 18%, 40%)?
HEX: #787754 | RGB: rgb(120, 119, 84) | CMYK: 0%, 1%, 30%, 53% | HSV: 58°, 30%, 47%. Copy any format from the conversion table above.
What colors go well with #787754?
The complementary color is HSL(237, 18%, 40%). For a triadic harmony, use hues 57°, 177°, and 297°. For analogous combinations, try hues 27° and 87°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(57, 18%, 40%) in CSS?
As HSL: color: hsl(57, 18%, 40%); — As HEX: color: #787754; — As RGB: color: rgb(120, 119, 84); — Tailwind CSS: bg-[hsl(57,18%,40%)] — CSS variable: --color-primary: hsl(57, 18%, 40%);