HSL(51, 92%, 70%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(51,92%,70%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(51, 92%, 70%) | color: hsl(51, 92%, 70%) | |
| HEX | #F9E46C | color: #F9E46C | |
| RGB | rgb(249, 228, 108) | color: rgb(249, 228, 108) | |
| CMYK | cmyk(0%, 8%, 57%, 2%) | — | |
| HSV | hsv(51, 57%, 98%) | — | |
| HWB | hwb(51 42% 2%) | color: hwb(51 42% 2%) | |
| OKLCH | oklch(0.913 0.1415 99.51) | color: oklch(0.913 0.1415 99.51) | |
| Lab | lab(90.19 -7.21 60.08) | color: lab(90.19 -7.21 60.08) | |
| LCH | lch(90.19 60.51 96.84) | color: lch(90.19 60.51 96.84) |
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)
#F0F089 — rgb(240, 240, 137)
Deuteranopia (Green-blind)
#F1F390 — rgb(241, 243, 144)
Tritanopia (Blue-blind)
#F8A0A5 — rgb(248, 160, 165)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(51, 92%, 70%);
text
color: hsl(51, 92%, 70%);
border
border: 2px solid hsl(51, 92%, 70%);
gradient light
background: linear-gradient(to right, hsl(51, 92%, 90%), hsl(51, 92%, 70%));
gradient dark
background: linear-gradient(to right, hsl(51, 92%, 70%), hsl(51, 92%, 50%))
hex
background-color: #F9E46C;
tailwind
bg-[hsl(51,92%,70%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(51, 92%, 70%, 0.4);
css variable
--color-primary: hsl(51, 92%, 70%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(51, 92%, 70%)?
HEX: #F9E46C | RGB: rgb(249, 228, 108) | CMYK: 0%, 8%, 57%, 2% | HSV: 51°, 57%, 98%. Copy any format from the conversion table above.
What colors go well with #F9E46C?
The complementary color is HSL(231, 92%, 70%). 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, 92%, 70%) in CSS?
As HSL: color: hsl(51, 92%, 70%); — As HEX: color: #F9E46C; — As RGB: color: rgb(249, 228, 108); — Tailwind CSS: bg-[hsl(51,92%,70%)] — CSS variable: --color-primary: hsl(51, 92%, 70%);