Skip to content

#f0eb5d

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

RGB
240, 235, 93
HSL
58°, 83%, 65%
CMYK
0, 2, 61, 6
Luminance
0.7873

Every format

HEX#f0eb5d
RGBrgb(240, 235, 93)
HSLhsl(58, 83%, 65%)
CMYKcmyk(0%, 2%, 61%, 6%)
LABlab(91.1 -15.3 67.3)
LCHlch(91.1 69.1 102.8)
OKLCHoklch(0.918 0.161 107.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0eb5d on white: 1.25:1
AA ✗ fail · AA-large · AAA
Aa
#f0eb5d on black: 16.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green92.2%
Blue36.5%

CMYK percentages

Cyan0.0%
Magenta2.1%
Yellow61.2%
Key (black)5.9%

Color previews

#f0eb5d text on a black background

contrast 16.75:1

Card sample

#f0eb5d text on a white background

contrast 1.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0eb5d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0eb5d in the Color Lab