Skip to content

#f0ebba

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

RGB
240, 235, 186
HSL
54°, 64%, 84%
CMYK
0, 2, 23, 6
Luminance
0.8149

Every format

HEX#f0ebba
RGBrgb(240, 235, 186)
HSLhsl(54, 64%, 84%)
CMYKcmyk(0%, 2%, 23%, 6%)
LABlab(92.3 -6.0 24.4)
LCHlch(92.3 25.2 103.8)
OKLCHoklch(0.932 0.064 102.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0ebba on white: 1.21:1
AA ✗ fail · AA-large · AAA
Aa
#f0ebba on black: 17.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green92.2%
Blue72.9%

CMYK percentages

Cyan0.0%
Magenta2.1%
Yellow22.5%
Key (black)5.9%

Color previews

#f0ebba text on a black background

contrast 17.30:1

Card sample

#f0ebba text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0ebba

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0ebba in the Color Lab