HSL(52, 40%, 68%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(52,40%,68%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(52, 40%, 68%) | color: hsl(52, 40%, 68%) | |
| HEX | #CEC58D | color: #CEC58D | |
| RGB | rgb(206, 197, 141) | color: rgb(206, 197, 141) | |
| CMYK | cmyk(0%, 4%, 32%, 19%) | — | |
| HSV | hsv(52, 32%, 81%) | — | |
| HWB | hwb(52 55% 19%) | color: hwb(52 55% 19%) | |
| OKLCH | oklch(0.8173 0.0743 100.11) | color: oklch(0.8173 0.0743 100.11) | |
| Lab | lab(79.03 -5.37 29.28) | color: lab(79.03 -5.37 29.28) | |
| LCH | lch(79.03 29.77 100.39) | color: lch(79.03 29.77 100.39) |
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)
#CACA9B — rgb(202, 202, 155)
Deuteranopia (Green-blind)
#CBCB9E — rgb(203, 203, 158)
Tritanopia (Blue-blind)
#CEA5A8 — rgb(206, 165, 168)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(52, 40%, 68%);
text
color: hsl(52, 40%, 68%);
border
border: 2px solid hsl(52, 40%, 68%);
gradient light
background: linear-gradient(to right, hsl(52, 40%, 88%), hsl(52, 40%, 68%));
gradient dark
background: linear-gradient(to right, hsl(52, 40%, 68%), hsl(52, 40%, 48%))
hex
background-color: #CEC58D;
tailwind
bg-[hsl(52,40%,68%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(52, 40%, 68%, 0.4);
css variable
--color-primary: hsl(52, 40%, 68%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(52, 40%, 68%)?
HEX: #CEC58D | RGB: rgb(206, 197, 141) | CMYK: 0%, 4%, 32%, 19% | HSV: 52°, 32%, 81%. Copy any format from the conversion table above.
What colors go well with #CEC58D?
The complementary color is HSL(232, 40%, 68%). 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, 40%, 68%) in CSS?
As HSL: color: hsl(52, 40%, 68%); — As HEX: color: #CEC58D; — As RGB: color: rgb(206, 197, 141); — Tailwind CSS: bg-[hsl(52,40%,68%)] — CSS variable: --color-primary: hsl(52, 40%, 68%);