HSL(56, 58%, 42%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(56,58%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(56, 58%, 42%) | color: hsl(56, 58%, 42%) | |
| HEX | #A9A12D | color: #A9A12D | |
| RGB | rgb(169, 161, 45) | color: rgb(169, 161, 45) | |
| CMYK | cmyk(0%, 5%, 73%, 34%) | — | |
| HSV | hsv(56, 73%, 66%) | — | |
| HWB | hwb(56 18% 34%) | color: hwb(56 18% 34%) | |
| OKLCH | oklch(0.6951 0.1322 105.36) | color: oklch(0.6951 0.1322 105.36) | |
| Lab | lab(65.05 -10.53 57.73) | color: lab(65.05 -10.53 57.73) | |
| LCH | lch(65.05 58.68 100.34) | color: lch(65.05 58.68 100.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)
#A6A549 — rgb(166, 165, 73)
Deuteranopia (Green-blind)
#A6A750 — rgb(166, 167, 80)
Tritanopia (Blue-blind)
#A95F64 — rgb(169, 95, 100)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(56, 58%, 42%);
text
color: hsl(56, 58%, 42%);
border
border: 2px solid hsl(56, 58%, 42%);
gradient light
background: linear-gradient(to right, hsl(56, 58%, 62%), hsl(56, 58%, 42%));
gradient dark
background: linear-gradient(to right, hsl(56, 58%, 42%), hsl(56, 58%, 22%))
hex
background-color: #A9A12D;
tailwind
bg-[hsl(56,58%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(56, 58%, 42%, 0.4);
css variable
--color-primary: hsl(56, 58%, 42%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(56, 58%, 42%)?
HEX: #A9A12D | RGB: rgb(169, 161, 45) | CMYK: 0%, 5%, 73%, 34% | HSV: 56°, 73%, 66%. Copy any format from the conversion table above.
What colors go well with #A9A12D?
The complementary color is HSL(236, 58%, 42%). For a triadic harmony, use hues 56°, 176°, and 296°. For analogous combinations, try hues 26° and 86°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(56, 58%, 42%) in CSS?
As HSL: color: hsl(56, 58%, 42%); — As HEX: color: #A9A12D; — As RGB: color: rgb(169, 161, 45); — Tailwind CSS: bg-[hsl(56,58%,42%)] — CSS variable: --color-primary: hsl(56, 58%, 42%);