HSL(52, 86%, 81%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(52,86%,81%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(52, 86%, 81%) | color: hsl(52, 86%, 81%) | |
| HEX | #F8EDA5 | color: #F8EDA5 | |
| RGB | rgb(248, 237, 165) | color: rgb(248, 237, 165) | |
| CMYK | cmyk(0%, 4%, 33%, 3%) | — | |
| HSV | hsv(52, 33%, 97%) | — | |
| HWB | hwb(52 65% 3%) | color: hwb(52 65% 3%) | |
| OKLCH | oklch(0.9384 0.0916 100.55) | color: oklch(0.9384 0.0916 100.55) | |
| Lab | lab(93.12 -6.7 36.28) | color: lab(93.12 -6.7 36.28) | |
| LCH | lch(93.12 36.89 100.46) | color: lch(93.12 36.89 100.46) |
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)
#F3F3B6 — rgb(243, 243, 182)
Deuteranopia (Green-blind)
#F4F5BB — rgb(244, 245, 187)
Tritanopia (Blue-blind)
#F7C4C7 — rgb(247, 196, 199)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(52, 86%, 81%);
text
color: hsl(52, 86%, 81%);
border
border: 2px solid hsl(52, 86%, 81%);
gradient light
background: linear-gradient(to right, hsl(52, 86%, 100%), hsl(52, 86%, 81%));
gradient dark
background: linear-gradient(to right, hsl(52, 86%, 81%), hsl(52, 86%, 61%))
hex
background-color: #F8EDA5;
tailwind
bg-[hsl(52,86%,81%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(52, 86%, 81%, 0.4);
css variable
--color-primary: hsl(52, 86%, 81%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(52, 86%, 81%)?
HEX: #F8EDA5 | RGB: rgb(248, 237, 165) | CMYK: 0%, 4%, 33%, 3% | HSV: 52°, 33%, 97%. Copy any format from the conversion table above.
What colors go well with #F8EDA5?
The complementary color is HSL(232, 86%, 81%). 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, 86%, 81%) in CSS?
As HSL: color: hsl(52, 86%, 81%); — As HEX: color: #F8EDA5; — As RGB: color: rgb(248, 237, 165); — Tailwind CSS: bg-[hsl(52,86%,81%)] — CSS variable: --color-primary: hsl(52, 86%, 81%);