Skip to content

#f0f066

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

RGB
240, 240, 102
HSL
60°, 82%, 67%
CMYK
0, 0, 58, 6
Luminance
0.8180

Every format

HEX#f0f066
RGBrgb(240, 240, 102)
HSLhsl(60, 82%, 67%)
CMYKcmyk(0%, 0%, 58%, 6%)
LABlab(92.5 -17.2 65.1)
LCHlch(92.5 67.3 104.8)
OKLCHoklch(0.929 0.159 109.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green94.1%
Blue40.0%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow57.5%
Key (black)5.9%

Color previews

#f0f066 text on a black background

contrast 17.36:1

Card sample

#f0f066 text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0f066

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0f066 in the Color Lab