Skip to content

#f0f09c

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

RGB
240, 240, 156
HSL
60°, 74%, 78%
CMYK
0, 0, 35, 6
Luminance
0.8325

Every format

HEX#f0f09c
RGBrgb(240, 240, 156)
HSLhsl(60, 74%, 78%)
CMYKcmyk(0%, 0%, 35%, 6%)
LABlab(93.1 -12.3 40.7)
LCHlch(93.1 42.5 106.8)
OKLCHoklch(0.936 0.105 108.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0f09c on white: 1.19:1
AA ✗ fail · AA-large · AAA
Aa
#f0f09c on black: 17.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green94.1%
Blue61.2%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow35.0%
Key (black)5.9%

Color previews

#f0f09c text on a black background

contrast 17.65:1

Card sample

#f0f09c text on a white background

contrast 1.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0f09c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0f09c in the Color Lab