Skip to content

#f0ebaa

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

RGB
240, 235, 170
HSL
56°, 70%, 80%
CMYK
0, 2, 29, 6
Luminance
0.8084

Every format

HEX#f0ebaa
RGBrgb(240, 235, 170)
HSLhsl(56, 70%, 80%)
CMYKcmyk(0%, 2%, 29%, 6%)
LABlab(92.1 -8.1 32.2)
LCHlch(92.1 33.2 104.1)
OKLCHoklch(0.929 0.083 104.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0ebaa on white: 1.22:1
AA ✗ fail · AA-large · AAA
Aa
#f0ebaa on black: 17.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green92.2%
Blue66.7%

CMYK percentages

Cyan0.0%
Magenta2.1%
Yellow29.2%
Key (black)5.9%

Color previews

#f0ebaa text on a black background

contrast 17.17:1

Card sample

#f0ebaa text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(240, 235, 170, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 235, 170, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0ebaa;
background: linear-gradient(135deg, #f0ebaa, #C6F0AA);

Monochromatic scale

Palettes built from #f0ebaa

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0ebaa in the Color Lab