Skip to content

#f6ecad

a light, electric yellow · cool · closest name: khaki

RGB
246, 236, 173
HSL
52°, 80%, 82%
CMYK
0, 4, 30, 4
Luminance
0.8260

Every format

HEX#f6ecad
RGBrgb(246, 236, 173)
HSLhsl(52, 80%, 82%)
CMYKcmyk(0%, 4%, 30%, 4%)
LABlab(92.8 -6.0 31.8)
LCHlch(92.8 32.4 100.6)
OKLCHoklch(0.936 0.081 100.2)

Copy-ready code

/* CSS */
color: #f6ecad;
background-color: #f6ecad;
/* Tailwind (arbitrary) */
class="text-[#f6ecad] bg-[#f6ecad]"
/* SCSS */
$brand: #f6ecad;
/* SwiftUI */
Color(red: 0.965, green: 0.925, blue: 0.678)
/* Android */
Color.parseColor("#f6ecad")

Accessibility — WCAG contrast

Aa
#f6ecad on white: 1.20:1
AA ✗ fail · AA-large · AAA
Aa
#f6ecad on black: 17.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red96.5%
Green92.5%
Blue67.8%

CMYK percentages

Cyan0.0%
Magenta4.1%
Yellow29.7%
Key (black)3.5%

Color previews

#f6ecad text on a black background

contrast 17.52:1

Card sample

#f6ecad text on a white background

contrast 1.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #f6ecad;
Background color
Panel with #f6ecad background
background-color: #f6ecad;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #f6ecad;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(246, 236, 173, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(246, 236, 173, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f6ecad;
background: linear-gradient(135deg, #f6ecad, #CFF6AD);

Monochromatic scale

Palettes built from #f6ecad

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f6ecad in the Color Lab