HSL(45, 40%, 8%)
Very Dark Yellow — Yellow color
Adjust Color
Color Information
Color Name
Very Dark Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(45,40%,8%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(45, 40%, 8%) | color: hsl(45, 40%, 8%) | |
| HEX | #1D180C | color: #1D180C | |
| RGB | rgb(29, 24, 12) | color: rgb(29, 24, 12) | |
| CMYK | cmyk(0%, 17%, 59%, 89%) | — | |
| HSV | hsv(42, 59%, 11%) | — | |
| HWB | hwb(42 5% 89%) | color: hwb(42 5% 89%) | |
| OKLCH | oklch(0.2112 0.023 87.78) | color: oklch(0.2112 0.023 87.78) | |
| Lab | lab(8.49 0.21 7.74) | color: lab(8.49 0.21 7.74) | |
| LCH | lch(8.49 7.74 88.45) | color: lch(8.49 7.74 88.45) |
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)
#1B1B0F — rgb(27, 27, 15)
Deuteranopia (Green-blind)
#1B1C10 — rgb(27, 28, 16)
Tritanopia (Blue-blind)
#1D1112 — rgb(29, 17, 18)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(45, 40%, 8%);
text
color: hsl(45, 40%, 8%);
border
border: 2px solid hsl(45, 40%, 8%);
gradient light
background: linear-gradient(to right, hsl(45, 40%, 28%), hsl(45, 40%, 8%));
gradient dark
background: linear-gradient(to right, hsl(45, 40%, 8%), hsl(45, 40%, 0%))
hex
background-color: #1D180C;
tailwind
bg-[hsl(45,40%,8%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(45, 40%, 8%, 0.4);
css variable
--color-primary: hsl(45, 40%, 8%);
Related Colors
Use Cases for Very Dark Yellow
Frequently Asked Questions
What are all the color codes for HSL(45, 40%, 8%)?
HEX: #1D180C | RGB: rgb(29, 24, 12) | CMYK: 0%, 17%, 59%, 89% | HSV: 42°, 59%, 11%. Copy any format from the conversion table above.
What colors go well with #1D180C?
The complementary color is HSL(225, 40%, 8%). For a triadic harmony, use hues 45°, 165°, and 285°. For analogous combinations, try hues 15° and 75°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(45, 40%, 8%) in CSS?
As HSL: color: hsl(45, 40%, 8%); — As HEX: color: #1D180C; — As RGB: color: rgb(29, 24, 12); — Tailwind CSS: bg-[hsl(45,40%,8%)] — CSS variable: --color-primary: hsl(45, 40%, 8%);