Skip to content

#f0ff4b

a balanced, electric yellow · cool · closest name: yellow

RGB
240, 255, 75
HSL
65°, 100%, 65%
CMYK
6, 0, 71, 0
Luminance
0.9055

Every format

HEX#f0ff4b
RGBrgb(240, 255, 75)
HSLhsl(65, 100%, 65%)
CMYKcmyk(6%, 0%, 71%, 0%)
LABlab(96.2 -25.9 79.3)
LCHlch(96.2 83.4 108.1)
OKLCHoklch(0.959 0.193 114.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0ff4b on white: 1.10:1
AA ✗ fail · AA-large · AAA
Aa
#f0ff4b on black: 19.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green100.0%
Blue29.4%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow70.6%
Key (black)0.0%

Color previews

#f0ff4b text on a black background

contrast 19.11:1

Card sample

#f0ff4b text on a white background

contrast 1.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0ff4b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0ff4b in the Color Lab