Skip to content

#f0e68c

a light, electric yellow · cool · “khaki”

RGB
240, 230, 140
HSL
54°, 77%, 75%
CMYK
0, 4, 42, 6
Luminance
0.7701

Every format

HEX#f0e68c
RGBrgb(240, 230, 140)
HSLhsl(54, 77%, 75%)
CMYKcmyk(0%, 4%, 42%, 6%)
LABlab(90.3 -9.0 45.0)
LCHlch(90.3 45.9 101.3)
OKLCHoklch(0.913 0.112 102.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0e68c on white: 1.28:1
AA ✗ fail · AA-large · AAA
Aa
#f0e68c on black: 16.40:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green90.2%
Blue54.9%

CMYK percentages

Cyan0.0%
Magenta4.2%
Yellow41.7%
Key (black)5.9%

Color previews

#f0e68c text on a black background

contrast 16.40:1

Card sample

#f0e68c text on a white background

contrast 1.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0e68c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0e68c in the Color Lab