Skip to content

#f0cd5f

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

RGB
240, 205, 95
HSL
46°, 83%, 66%
CMYK
0, 15, 60, 6
Luminance
0.6301

Every format

HEX#f0cd5f
RGBrgb(240, 205, 95)
HSLhsl(46, 83%, 66%)
CMYKcmyk(0%, 15%, 60%, 6%)
LABlab(83.5 -0.1 58.1)
LCHlch(83.5 58.1 90.1)
OKLCHoklch(0.857 0.134 91.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0cd5f on white: 1.54:1
AA ✗ fail · AA-large · AAA
Aa
#f0cd5f on black: 13.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green80.4%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta14.6%
Yellow60.4%
Key (black)5.9%

Color previews

#f0cd5f text on a black background

contrast 13.60:1

Card sample

#f0cd5f text on a white background

contrast 1.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0cd5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0cd5f in the Color Lab