HSL(52, 80%, 45%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(52,80%,45%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(52, 80%, 45%) | color: hsl(52, 80%, 45%) | |
| HEX | #CFB617 | color: #CFB617 | |
| RGB | rgb(207, 182, 23) | color: rgb(207, 182, 23) | |
| CMYK | cmyk(0%, 12%, 89%, 19%) | — | |
| HSV | hsv(52, 89%, 81%) | — | |
| HWB | hwb(52 9% 19%) | color: hwb(52 9% 19%) | |
| OKLCH | oklch(0.7745 0.1564 98.94) | color: oklch(0.7745 0.1564 98.94) | |
| Lab | lab(74.05 -5.46 72.93) | color: lab(74.05 -5.46 72.93) | |
| LCH | lch(74.05 73.13 94.28) | color: lch(74.05 73.13 94.28) |
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)
#C4C43D — rgb(196, 196, 61)
Deuteranopia (Green-blind)
#C6C847 — rgb(198, 200, 71)
Tritanopia (Blue-blind)
#CE5C63 — rgb(206, 92, 99)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(52, 80%, 45%);
text
color: hsl(52, 80%, 45%);
border
border: 2px solid hsl(52, 80%, 45%);
gradient light
background: linear-gradient(to right, hsl(52, 80%, 65%), hsl(52, 80%, 45%));
gradient dark
background: linear-gradient(to right, hsl(52, 80%, 45%), hsl(52, 80%, 25%))
hex
background-color: #CFB617;
tailwind
bg-[hsl(52,80%,45%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(52, 80%, 45%, 0.4);
css variable
--color-primary: hsl(52, 80%, 45%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(52, 80%, 45%)?
HEX: #CFB617 | RGB: rgb(207, 182, 23) | CMYK: 0%, 12%, 89%, 19% | HSV: 52°, 89%, 81%. Copy any format from the conversion table above.
What colors go well with #CFB617?
The complementary color is HSL(232, 80%, 45%). For a triadic harmony, use hues 52°, 172°, and 292°. For analogous combinations, try hues 22° and 82°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(52, 80%, 45%) in CSS?
As HSL: color: hsl(52, 80%, 45%); — As HEX: color: #CFB617; — As RGB: color: rgb(207, 182, 23); — Tailwind CSS: bg-[hsl(52,80%,45%)] — CSS variable: --color-primary: hsl(52, 80%, 45%);