HSL(51, 74%, 47%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(51,74%,47%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(51, 74%, 47%) | color: hsl(51, 74%, 47%) | |
| HEX | #D1B61F | color: #D1B61F | |
| RGB | rgb(209, 182, 31) | color: rgb(209, 182, 31) | |
| CMYK | cmyk(0%, 13%, 85%, 18%) | — | |
| HSV | hsv(51, 85%, 82%) | — | |
| HWB | hwb(51 12% 18%) | color: hwb(51 12% 18%) | |
| OKLCH | oklch(0.7767 0.1539 97.83) | color: oklch(0.7767 0.1539 97.83) | |
| Lab | lab(74.26 -4.41 71.47) | color: lab(74.26 -4.41 71.47) | |
| LCH | lch(74.26 71.61 93.53) | color: lch(74.26 71.61 93.53) |
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)
#C5C544 — rgb(197, 197, 68)
Deuteranopia (Green-blind)
#C7C94C — rgb(199, 201, 76)
Tritanopia (Blue-blind)
#D06067 — rgb(208, 96, 103)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(51, 74%, 47%);
text
color: hsl(51, 74%, 47%);
border
border: 2px solid hsl(51, 74%, 47%);
gradient light
background: linear-gradient(to right, hsl(51, 74%, 67%), hsl(51, 74%, 47%));
gradient dark
background: linear-gradient(to right, hsl(51, 74%, 47%), hsl(51, 74%, 27%))
hex
background-color: #D1B61F;
tailwind
bg-[hsl(51,74%,47%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(51, 74%, 47%, 0.4);
css variable
--color-primary: hsl(51, 74%, 47%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(51, 74%, 47%)?
HEX: #D1B61F | RGB: rgb(209, 182, 31) | CMYK: 0%, 13%, 85%, 18% | HSV: 51°, 85%, 82%. Copy any format from the conversion table above.
What colors go well with #D1B61F?
The complementary color is HSL(231, 74%, 47%). For a triadic harmony, use hues 51°, 171°, and 291°. For analogous combinations, try hues 21° and 81°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(51, 74%, 47%) in CSS?
As HSL: color: hsl(51, 74%, 47%); — As HEX: color: #D1B61F; — As RGB: color: rgb(209, 182, 31); — Tailwind CSS: bg-[hsl(51,74%,47%)] — CSS variable: --color-primary: hsl(51, 74%, 47%);