Skip to content

#f0f08f

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

RGB
240, 240, 143
HSL
60°, 76%, 75%
CMYK
0, 0, 40, 6
Luminance
0.8283

Every format

HEX#f0f08f
RGBrgb(240, 240, 143)
HSLhsl(60, 76%, 75%)
CMYKcmyk(0%, 0%, 40%, 6%)
LABlab(92.9 -13.7 46.8)
LCHlch(92.9 48.8 106.3)
OKLCHoklch(0.934 0.120 108.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0f08f on white: 1.20:1
AA ✗ fail · AA-large · AAA
Aa
#f0f08f on black: 17.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green94.1%
Blue56.1%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow40.4%
Key (black)5.9%

Color previews

#f0f08f text on a black background

contrast 17.57:1

Card sample

#f0f08f text on a white background

contrast 1.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0f08f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0f08f in the Color Lab