HSL(47, 80%, 45%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(47,80%,45%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(47, 80%, 45%) | color: hsl(47, 80%, 45%) | |
| HEX | #CFA717 | color: #CFA717 | |
| RGB | rgb(207, 167, 23) | color: rgb(207, 167, 23) | |
| CMYK | cmyk(0%, 19%, 89%, 19%) | — | |
| HSV | hsv(47, 89%, 81%) | — | |
| HWB | hwb(47 9% 19%) | color: hwb(47 9% 19%) | |
| OKLCH | oklch(0.7437 0.1476 90.81) | color: oklch(0.7437 0.1476 90.81) | |
| Lab | lab(70.15 2.43 69.87) | color: lab(70.15 2.43 69.87) | |
| LCH | lch(70.15 69.91 88.01) | color: lch(70.15 69.91 88.01) |
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)
#BEBD3A — rgb(190, 189, 58)
Deuteranopia (Green-blind)
#C0C342 — rgb(192, 195, 66)
Tritanopia (Blue-blind)
#CD555B — rgb(205, 85, 91)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(47, 80%, 45%);
text
color: hsl(47, 80%, 45%);
border
border: 2px solid hsl(47, 80%, 45%);
gradient light
background: linear-gradient(to right, hsl(47, 80%, 65%), hsl(47, 80%, 45%));
gradient dark
background: linear-gradient(to right, hsl(47, 80%, 45%), hsl(47, 80%, 25%))
hex
background-color: #CFA717;
tailwind
bg-[hsl(47,80%,45%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(47, 80%, 45%, 0.4);
css variable
--color-primary: hsl(47, 80%, 45%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(47, 80%, 45%)?
HEX: #CFA717 | RGB: rgb(207, 167, 23) | CMYK: 0%, 19%, 89%, 19% | HSV: 47°, 89%, 81%. Copy any format from the conversion table above.
What colors go well with #CFA717?
The complementary color is HSL(227, 80%, 45%). For a triadic harmony, use hues 47°, 167°, and 287°. For analogous combinations, try hues 17° and 77°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(47, 80%, 45%) in CSS?
As HSL: color: hsl(47, 80%, 45%); — As HEX: color: #CFA717; — As RGB: color: rgb(207, 167, 23); — Tailwind CSS: bg-[hsl(47,80%,45%)] — CSS variable: --color-primary: hsl(47, 80%, 45%);