HSL(45, 60%, 43%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(45,60%,43%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(45, 60%, 43%) | color: hsl(45, 60%, 43%) | |
| HEX | #AF8F2C | color: #AF8F2C | |
| RGB | rgb(175, 143, 44) | color: rgb(175, 143, 44) | |
| CMYK | cmyk(0%, 18%, 75%, 31%) | — | |
| HSV | hsv(45, 75%, 69%) | — | |
| HWB | hwb(45 17% 31%) | color: hwb(45 17% 31%) | |
| OKLCH | oklch(0.6622 0.1194 90.24) | color: oklch(0.6622 0.1194 90.24) | |
| Lab | lab(60.73 1.79 54.14) | color: lab(60.73 1.79 54.14) | |
| LCH | lch(60.73 54.17 88.11) | color: lch(60.73 54.17 88.11) |
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)
#A1A144 — rgb(161, 161, 68)
Deuteranopia (Green-blind)
#A3A54A — rgb(163, 165, 74)
Tritanopia (Blue-blind)
#AD575B — rgb(173, 87, 91)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(45, 60%, 43%);
text
color: hsl(45, 60%, 43%);
border
border: 2px solid hsl(45, 60%, 43%);
gradient light
background: linear-gradient(to right, hsl(45, 60%, 63%), hsl(45, 60%, 43%));
gradient dark
background: linear-gradient(to right, hsl(45, 60%, 43%), hsl(45, 60%, 23%))
hex
background-color: #AF8F2C;
tailwind
bg-[hsl(45,60%,43%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(45, 60%, 43%, 0.4);
css variable
--color-primary: hsl(45, 60%, 43%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(45, 60%, 43%)?
HEX: #AF8F2C | RGB: rgb(175, 143, 44) | CMYK: 0%, 18%, 75%, 31% | HSV: 45°, 75%, 69%. Copy any format from the conversion table above.
What colors go well with #AF8F2C?
The complementary color is HSL(225, 60%, 43%). 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, 60%, 43%) in CSS?
As HSL: color: hsl(45, 60%, 43%); — As HEX: color: #AF8F2C; — As RGB: color: rgb(175, 143, 44); — Tailwind CSS: bg-[hsl(45,60%,43%)] — CSS variable: --color-primary: hsl(45, 60%, 43%);