Skip to content

#f0ff75

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

RGB
240, 255, 117
HSL
67°, 100%, 73%
CMYK
6, 0, 54, 0
Luminance
0.9133

Every format

HEX#f0ff75
RGBrgb(240, 255, 117)
HSLhsl(67, 100%, 73%)
CMYKcmyk(6%, 0%, 54%, 0%)
LABlab(96.5 -23.3 63.2)
LCHlch(96.5 67.3 110.2)
OKLCHoklch(0.962 0.162 114.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0ff75 on white: 1.09:1
AA ✗ fail · AA-large · AAA
Aa
#f0ff75 on black: 19.27:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green100.0%
Blue45.9%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow54.1%
Key (black)0.0%

Color previews

#f0ff75 text on a black background

contrast 19.27:1

Card sample

#f0ff75 text on a white background

contrast 1.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0ff75

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0ff75 in the Color Lab