HSL(54, 75%, 50%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(54,75%,50%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(54, 75%, 50%) | color: hsl(54, 75%, 50%) | |
| HEX | #DFCC20 | color: #DFCC20 | |
| RGB | rgb(223, 204, 32) | color: rgb(223, 204, 32) | |
| CMYK | cmyk(0%, 9%, 86%, 13%) | — | |
| HSV | hsv(54, 86%, 87%) | — | |
| HWB | hwb(54 12% 13%) | color: hwb(54 12% 13%) | |
| OKLCH | oklch(0.8354 0.1691 102.33) | color: oklch(0.8354 0.1691 102.33) | |
| Lab | lab(81.28 -9.62 77.5) | color: lab(81.28 -9.62 77.5) | |
| LCH | lch(81.28 78.09 97.08) | color: lch(81.28 78.09 97.08) |
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)
#D7D74A — rgb(215, 215, 74)
Deuteranopia (Green-blind)
#D8D954 — rgb(216, 217, 84)
Tritanopia (Blue-blind)
#DE6A72 — rgb(222, 106, 114)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(54, 75%, 50%);
text
color: hsl(54, 75%, 50%);
border
border: 2px solid hsl(54, 75%, 50%);
gradient light
background: linear-gradient(to right, hsl(54, 75%, 70%), hsl(54, 75%, 50%));
gradient dark
background: linear-gradient(to right, hsl(54, 75%, 50%), hsl(54, 75%, 30%))
hex
background-color: #DFCC20;
tailwind
bg-[hsl(54,75%,50%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(54, 75%, 50%, 0.4);
css variable
--color-primary: hsl(54, 75%, 50%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(54, 75%, 50%)?
HEX: #DFCC20 | RGB: rgb(223, 204, 32) | CMYK: 0%, 9%, 86%, 13% | HSV: 54°, 86%, 87%. Copy any format from the conversion table above.
What colors go well with #DFCC20?
The complementary color is HSL(234, 75%, 50%). For a triadic harmony, use hues 54°, 174°, and 294°. For analogous combinations, try hues 24° and 84°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(54, 75%, 50%) in CSS?
As HSL: color: hsl(54, 75%, 50%); — As HEX: color: #DFCC20; — As RGB: color: rgb(223, 204, 32); — Tailwind CSS: bg-[hsl(54,75%,50%)] — CSS variable: --color-primary: hsl(54, 75%, 50%);