Skip to content

#f0e2ab

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

RGB
240, 226, 171
HSL
48°, 70%, 81%
CMYK
0, 6, 29, 6
Luminance
0.7586

Every format

HEX#f0e2ab
RGBrgb(240, 226, 171)
HSLhsl(48, 70%, 81%)
CMYKcmyk(0%, 6%, 29%, 6%)
LABlab(89.8 -3.4 28.7)
LCHlch(89.8 28.9 96.8)
OKLCHoklch(0.911 0.073 95.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0e2ab on white: 1.30:1
AA ✗ fail · AA-large · AAA
Aa
#f0e2ab on black: 16.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green88.6%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta5.8%
Yellow28.8%
Key (black)5.9%

Color previews

#f0e2ab text on a black background

contrast 16.17:1

Card sample

#f0e2ab text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0e2ab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0e2ab in the Color Lab