HSL(49, 79%, 45%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(49,79%,45%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(49, 79%, 45%) | color: hsl(49, 79%, 45%) | |
| HEX | #CDAC18 | color: #CDAC18 | |
| RGB | rgb(205, 172, 24) | color: rgb(205, 172, 24) | |
| CMYK | cmyk(0%, 16%, 88%, 20%) | — | |
| HSV | hsv(49, 88%, 80%) | — | |
| HWB | hwb(49 10% 20%) | color: hwb(49 10% 20%) | |
| OKLCH | oklch(0.7519 0.1496 94.55) | color: oklch(0.7519 0.1496 94.55) | |
| Lab | lab(71.25 -1.08 70.44) | color: lab(71.25 -1.08 70.44) | |
| LCH | lch(71.25 70.45 90.88) | color: lch(71.25 70.45 90.88) |
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)
#BFBE3C — rgb(191, 190, 60)
Deuteranopia (Green-blind)
#C1C344 — rgb(193, 195, 68)
Tritanopia (Blue-blind)
#CB585E — rgb(203, 88, 94)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(49, 79%, 45%);
text
color: hsl(49, 79%, 45%);
border
border: 2px solid hsl(49, 79%, 45%);
gradient light
background: linear-gradient(to right, hsl(49, 79%, 65%), hsl(49, 79%, 45%));
gradient dark
background: linear-gradient(to right, hsl(49, 79%, 45%), hsl(49, 79%, 25%))
hex
background-color: #CDAC18;
tailwind
bg-[hsl(49,79%,45%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(49, 79%, 45%, 0.4);
css variable
--color-primary: hsl(49, 79%, 45%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(49, 79%, 45%)?
HEX: #CDAC18 | RGB: rgb(205, 172, 24) | CMYK: 0%, 16%, 88%, 20% | HSV: 49°, 88%, 80%. Copy any format from the conversion table above.
What colors go well with #CDAC18?
The complementary color is HSL(229, 79%, 45%). For a triadic harmony, use hues 49°, 169°, and 289°. For analogous combinations, try hues 19° and 79°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(49, 79%, 45%) in CSS?
As HSL: color: hsl(49, 79%, 45%); — As HEX: color: #CDAC18; — As RGB: color: rgb(205, 172, 24); — Tailwind CSS: bg-[hsl(49,79%,45%)] — CSS variable: --color-primary: hsl(49, 79%, 45%);