HSL(49, 80%, 45%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(49,80%,45%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(49, 80%, 45%) | color: hsl(49, 80%, 45%) | |
| HEX | #CFAD17 | color: #CFAD17 | |
| RGB | rgb(207, 173, 23) | color: rgb(207, 173, 23) | |
| CMYK | cmyk(0%, 16%, 89%, 19%) | — | |
| HSV | hsv(49, 89%, 81%) | — | |
| HWB | hwb(49 9% 19%) | color: hwb(49 9% 19%) | |
| OKLCH | oklch(0.7559 0.1507 94.21) | color: oklch(0.7559 0.1507 94.21) | |
| Lab | lab(71.7 -0.75 71.08) | color: lab(71.7 -0.75 71.08) | |
| LCH | lch(71.7 71.08 90.6) | color: lch(71.7 71.08 90.6) |
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)
#C0C03B — rgb(192, 192, 59)
Deuteranopia (Green-blind)
#C2C544 — rgb(194, 197, 68)
Tritanopia (Blue-blind)
#CD585E — rgb(205, 88, 94)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(49, 80%, 45%);
text
color: hsl(49, 80%, 45%);
border
border: 2px solid hsl(49, 80%, 45%);
gradient light
background: linear-gradient(to right, hsl(49, 80%, 65%), hsl(49, 80%, 45%));
gradient dark
background: linear-gradient(to right, hsl(49, 80%, 45%), hsl(49, 80%, 25%))
hex
background-color: #CFAD17;
tailwind
bg-[hsl(49,80%,45%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(49, 80%, 45%, 0.4);
css variable
--color-primary: hsl(49, 80%, 45%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(49, 80%, 45%)?
HEX: #CFAD17 | RGB: rgb(207, 173, 23) | CMYK: 0%, 16%, 89%, 19% | HSV: 49°, 89%, 81%. Copy any format from the conversion table above.
What colors go well with #CFAD17?
The complementary color is HSL(229, 80%, 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, 80%, 45%) in CSS?
As HSL: color: hsl(49, 80%, 45%); — As HEX: color: #CFAD17; — As RGB: color: rgb(207, 173, 23); — Tailwind CSS: bg-[hsl(49,80%,45%)] — CSS variable: --color-primary: hsl(49, 80%, 45%);