HSL(51, 55%, 71%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(51,55%,71%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(51, 55%, 71%) | color: hsl(51, 55%, 71%) | |
| HEX | #DED28C | color: #DED28C | |
| RGB | rgb(222, 210, 140) | color: rgb(222, 210, 140) | |
| CMYK | cmyk(0%, 5%, 37%, 13%) | — | |
| HSV | hsv(51, 37%, 87%) | — | |
| HWB | hwb(51 55% 13%) | color: hwb(51 55% 13%) | |
| OKLCH | oklch(0.8575 0.0905 99.68) | color: oklch(0.8575 0.0905 99.68) | |
| Lab | lab(83.71 -5.93 36.21) | color: lab(83.71 -5.93 36.21) | |
| LCH | lch(83.71 36.69 99.3) | color: lch(83.71 36.69 99.3) |
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)
#D9D99D — rgb(217, 217, 157)
Deuteranopia (Green-blind)
#DADAA1 — rgb(218, 218, 161)
Tritanopia (Blue-blind)
#DDAAAD — rgb(221, 170, 173)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(51, 55%, 71%);
text
color: hsl(51, 55%, 71%);
border
border: 2px solid hsl(51, 55%, 71%);
gradient light
background: linear-gradient(to right, hsl(51, 55%, 91%), hsl(51, 55%, 71%));
gradient dark
background: linear-gradient(to right, hsl(51, 55%, 71%), hsl(51, 55%, 51%))
hex
background-color: #DED28C;
tailwind
bg-[hsl(51,55%,71%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(51, 55%, 71%, 0.4);
css variable
--color-primary: hsl(51, 55%, 71%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(51, 55%, 71%)?
HEX: #DED28C | RGB: rgb(222, 210, 140) | CMYK: 0%, 5%, 37%, 13% | HSV: 51°, 37%, 87%. Copy any format from the conversion table above.
What colors go well with #DED28C?
The complementary color is HSL(231, 55%, 71%). 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, 55%, 71%) in CSS?
As HSL: color: hsl(51, 55%, 71%); — As HEX: color: #DED28C; — As RGB: color: rgb(222, 210, 140); — Tailwind CSS: bg-[hsl(51,55%,71%)] — CSS variable: --color-primary: hsl(51, 55%, 71%);