HSL(51, 68%, 84%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(51,68%,84%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(51, 68%, 84%) | color: hsl(51, 68%, 84%) | |
| HEX | #F2EABA | color: #F2EABA | |
| RGB | rgb(242, 234, 186) | color: rgb(242, 234, 186) | |
| CMYK | cmyk(0%, 3%, 23%, 5%) | — | |
| HSV | hsv(51, 23%, 95%) | — | |
| HWB | hwb(51 73% 5%) | color: hwb(51 73% 5%) | |
| OKLCH | oklch(0.9315 0.0628 99.6) | color: oklch(0.9315 0.0628 99.6) | |
| Lab | lab(92.25 -4.76 24.34) | color: lab(92.25 -4.76 24.34) | |
| LCH | lch(92.25 24.8 101.07) | color: lch(92.25 24.8 101.07) |
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)
#EFEEC6 — rgb(239, 238, 198)
Deuteranopia (Green-blind)
#EFF0C8 — rgb(239, 240, 200)
Tritanopia (Blue-blind)
#F2CFD1 — rgb(242, 207, 209)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(51, 68%, 84%);
text
color: hsl(51, 68%, 84%);
border
border: 2px solid hsl(51, 68%, 84%);
gradient light
background: linear-gradient(to right, hsl(51, 68%, 100%), hsl(51, 68%, 84%));
gradient dark
background: linear-gradient(to right, hsl(51, 68%, 84%), hsl(51, 68%, 64%))
hex
background-color: #F2EABA;
tailwind
bg-[hsl(51,68%,84%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(51, 68%, 84%, 0.4);
css variable
--color-primary: hsl(51, 68%, 84%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(51, 68%, 84%)?
HEX: #F2EABA | RGB: rgb(242, 234, 186) | CMYK: 0%, 3%, 23%, 5% | HSV: 51°, 23%, 95%. Copy any format from the conversion table above.
What colors go well with #F2EABA?
The complementary color is HSL(231, 68%, 84%). 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, 68%, 84%) in CSS?
As HSL: color: hsl(51, 68%, 84%); — As HEX: color: #F2EABA; — As RGB: color: rgb(242, 234, 186); — Tailwind CSS: bg-[hsl(51,68%,84%)] — CSS variable: --color-primary: hsl(51, 68%, 84%);