Skip to content

#f0f751

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

RGB
240, 247, 81
HSL
63°, 91%, 64%
CMYK
3, 0, 67, 3
Luminance
0.8564

Every format

HEX#f0f751
RGBrgb(240, 247, 81)
HSLhsl(63, 91%, 64%)
CMYKcmyk(3%, 0%, 67%, 3%)
LABlab(94.2 -21.8 75.1)
LCHlch(94.2 78.2 106.2)
OKLCHoklch(0.942 0.181 111.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0f751 on white: 1.16:1
AA ✗ fail · AA-large · AAA
Aa
#f0f751 on black: 18.13:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green96.9%
Blue31.8%

CMYK percentages

Cyan2.8%
Magenta0.0%
Yellow67.2%
Key (black)3.1%

Color previews

#f0f751 text on a black background

contrast 18.13:1

Card sample

#f0f751 text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0f751

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0f751 in the Color Lab